ant-design/components/alert/demo/description.tsx
thinkasany fc97a4dd91
feat: ConfigProvider support classnames and styles for Alert (#52669)
* feat: ConfigProvider support classnames and styles for Alert

* empty commit

* update name and snap

* update
2025-02-07 17:39:31 +08:00

33 lines
770 B
TypeScript

import React from 'react';
import { Alert } from 'antd';
const App: React.FC = () => (
<>
<Alert
title="Success Text"
description="Success Description Success Description Success Description"
type="success"
/>
<br />
<Alert
title="Info Text"
description="Info Description Info Description Info Description Info Description"
type="info"
/>
<br />
<Alert
title="Warning Text"
description="Warning Description Warning Description Warning Description Warning Description"
type="warning"
/>
<br />
<Alert
title="Error Text"
description="Error Description Error Description Error Description Error Description"
type="error"
/>
</>
);
export default App;