You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
488 B

import React from 'react';
import { Alert, Space } from 'antd';
const App: React.FC = () => (
<Space direction="vertical" style={{ width: '100%' }}>
<Alert message="Warning text" banner />
<Alert
message="Very long warning text warning text text text text text text text"
banner
closable
/>
<Alert showIcon={false} message="Warning text without icon" banner />
<Alert type="error" message="Error text" banner />
</Space>
);
export default App;