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.
59 lines
1.3 KiB
59 lines
1.3 KiB
import React from 'react';
|
|
import { Alert, Button, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical" style={{ width: '100%' }}>
|
|
<Alert
|
|
message="Success Tips"
|
|
type="success"
|
|
showIcon
|
|
action={
|
|
<Button size="small" type="text">
|
|
UNDO
|
|
</Button>
|
|
}
|
|
closable
|
|
/>
|
|
<Alert
|
|
message="Error Text"
|
|
showIcon
|
|
description="Error Description Error Description Error Description Error Description"
|
|
type="error"
|
|
action={
|
|
<Button size="small" danger>
|
|
Detail
|
|
</Button>
|
|
}
|
|
/>
|
|
<Alert
|
|
message="Warning Text"
|
|
type="warning"
|
|
action={
|
|
<Space>
|
|
<Button size="small" type="ghost">
|
|
Done
|
|
</Button>
|
|
</Space>
|
|
}
|
|
closable
|
|
/>
|
|
<Alert
|
|
message="Info Text"
|
|
description="Info Description Info Description Info Description Info Description"
|
|
type="info"
|
|
action={
|
|
<Space direction="vertical">
|
|
<Button size="small" type="primary">
|
|
Accept
|
|
</Button>
|
|
<Button size="small" danger type="ghost">
|
|
Decline
|
|
</Button>
|
|
</Space>
|
|
}
|
|
closable
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|
|
|