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

26 lines
297 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
title:
2016-08-02 16:06:46 +08:00
zh-CN: 基本
en-US: Basic
2016-03-31 09:40:55 +08:00
---
2015-06-03 17:08:43 +08:00
2016-08-02 16:06:46 +08:00
## zh-CN
2015-06-03 17:08:43 +08:00
最简单的用法。
## en-US
2016-08-02 16:06:46 +08:00
The simplest usage.
2017-02-13 10:55:53 +08:00
````jsx
import { Tooltip } from 'antd';
2015-06-03 17:08:43 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
<Tooltip title="prompt text">
<span>Tooltip will show when mouse enter.</span>
2018-06-27 15:55:04 +08:00
</Tooltip>,
2018-11-28 15:00:03 +08:00
mountNode
);
2015-06-03 17:08:43 +08:00
````