mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +08:00
635 B
635 B
order | iframe | title | ||||
---|---|---|---|---|---|---|
6 | 250 |
|
zh-CN
页面顶部通告形式,默认有图标且type
为 'warning'。
en-US
Display Alert as a banner at top of page.
import { Alert } from 'antd';
ReactDOM.render(
<div>
<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 />
</div>,
mountNode,
);