2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-12-02 15:07:03 +08:00
|
|
|
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
|
|
|
最简单的用法。
|
|
|
|
|
2016-12-02 15:07:03 +08:00
|
|
|
## en-US
|
2016-08-02 16:06:46 +08:00
|
|
|
|
|
|
|
The simplest usage.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Tooltip } from 'antd';
|
2015-06-03 17:08:43 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2017-08-25 10:11:22 +08:00
|
|
|
<Tooltip title="prompt text">
|
2019-04-19 20:46:08 +08:00
|
|
|
<span>Tooltip will show on mouse enter.</span>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Tooltip>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|