mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
19 lines
265 B
Markdown
19 lines
265 B
Markdown
# 基本
|
|
|
|
- order: 0
|
|
|
|
最简单的用法。
|
|
|
|
---
|
|
|
|
````jsx
|
|
var Tooltip = antd.Tooltip;
|
|
|
|
React.render(
|
|
<Tooltip title="提示文字">
|
|
<span>鼠标移上来就会出现提示</span>
|
|
</Tooltip>
|
|
, document.getElementById('components-tooltip-demo-basic'));
|
|
````
|
|
|