mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-18 08:00:53 +08:00

* feat: ConfigProvider support classnames and styles for Alert * empty commit * update name and snap * update
21 lines
449 B
TypeScript
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;
|