ant-design/components/alert/demo/basic.md

15 lines
259 B
Markdown
Raw Normal View History

2015-07-27 20:53:08 +08:00
# 基本
- order: 0
2015-07-29 15:22:47 +08:00
最简单的用法,适用于简短的警告提示。
2015-07-27 20:53:08 +08:00
---
````jsx
import { Alert } from 'antd';
2015-07-27 20:53:08 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(<Alert message="成功提示的文案" type="success" />
2015-07-29 18:44:56 +08:00
, document.getElementById('components-alert-demo-basic'));
2015-07-27 20:53:08 +08:00
````