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

25 lines
299 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-01-19 15:19:03 +08:00
````__react
import { Tooltip } from 'antd';
2015-06-03 17:08:43 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
2016-08-02 16:06:46 +08:00
<Tooltip title="prompt text">
<span>Tooltip will show when mouse enter.</span>
2015-06-03 17:08:43 +08:00
</Tooltip>
, mountNode);
2015-06-03 17:08:43 +08:00
````