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

28 lines
341 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.
```tsx
import React from 'react';
import { Tooltip } from 'antd';
2015-06-03 17:08:43 +08:00
const App: React.FC = () => (
<Tooltip title="prompt text">
2019-04-19 20:46:08 +08:00
<span>Tooltip will show on mouse enter.</span>
</Tooltip>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```