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

29 lines
354 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
title:
zh-CN: 基本
en-US: Basic
2016-03-31 09:40:55 +08:00
---
2015-07-27 20:53:08 +08:00
## zh-CN
2015-07-29 15:22:47 +08:00
最简单的用法,适用于简短的警告提示。
2015-07-27 20:53:08 +08:00
## en-US
The simplest usage for short messages.
2017-02-13 10:55:53 +08:00
````jsx
import { Alert } from 'antd';
2015-07-27 20:53:08 +08:00
ReactDOM.render(
2018-06-27 15:55:04 +08:00
<Alert message="Success Text" type="success" />,
mountNode);
2015-07-27 20:53:08 +08:00
````
2017-05-23 17:51:10 +08:00
<style>
.ant-alert {
margin-bottom: 16px;
}
</style>