ant-design/components/tooltip/demo/debug.tsx
MadCcc 8ae56f2371
feat: tooltip support arrow.pointAtCenter (#40989)
* feat: tooltip support arrow.pointAtCenter

* test: rm only

* fix: Popover

* fix: rm popover arrow logic

* test: update test

* chore: skip debug demo test
2023-03-05 17:51:19 +08:00

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;