mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
34299b39ea
* docs(message): use message hooks api * docs(message): 保留一个静态方法调用 * docs: move docs demo order
32 lines
428 B
Markdown
32 lines
428 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 普通提示
|
|
en-US: Normal prompt
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
信息提醒反馈。
|
|
|
|
## en-US
|
|
|
|
Normal message for information.
|
|
|
|
```tsx
|
|
import React from 'react';
|
|
import { Button, message } from 'antd';
|
|
|
|
const info = () => {
|
|
message.info('This is a normal message');
|
|
};
|
|
|
|
const App: React.FC = () => (
|
|
<Button type="primary" onClick={info}>
|
|
Display normal message
|
|
</Button>
|
|
);
|
|
|
|
export default App;
|
|
```
|