mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
8ae56f2371
* feat: tooltip support arrow.pointAtCenter * test: rm only * fix: Popover * fix: rm popover arrow logic * test: update test * chore: skip debug demo test
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;
|