ant-design/components/alert/demo/banner.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

21 lines
449 B
TypeScript

import React from 'react';
import { Alert } from 'antd';
const App: React.FC = () => (
<>
<Alert title="Warning text" banner />
<br />
<Alert
title="Very long warning text warning text text text text text text text"
banner
closable
/>
<br />
<Alert showIcon={false} title="Warning text without icon" banner />
<br />
<Alert type="error" title="Error text" banner />
</>
);
export default App;