mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
16 lines
308 B
TypeScript
16 lines
308 B
TypeScript
|
import { Button, Tooltip } from 'antd';
|
||
|
import React from 'react';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Tooltip
|
||
|
open
|
||
|
title="Thanks for using antd. Have a nice day!"
|
||
|
arrow={{ pointAtCenter: true }}
|
||
|
placement="topLeft"
|
||
|
>
|
||
|
<Button>Point at center</Button>
|
||
|
</Tooltip>
|
||
|
);
|
||
|
|
||
|
export default App;
|