mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
21 lines
457 B
TypeScript
21 lines
457 B
TypeScript
import React from 'react';
|
|
import { Alert } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Alert message="Warning text" banner />
|
|
<br />
|
|
<Alert
|
|
message="Very long warning text warning text text text text text text text"
|
|
banner
|
|
closable
|
|
/>
|
|
<br />
|
|
<Alert showIcon={false} message="Warning text without icon" banner />
|
|
<br />
|
|
<Alert type="error" message="Error text" banner />
|
|
</>
|
|
);
|
|
|
|
export default App;
|