ant-design/components/tooltip/demo/arrow-point-at-center.tsx
susuhhhhhh 8cf629f126
demo: replace abandoned APIs with new ones (#47519)
* fix:废弃 api 替换成新 api

* Update demo-extend.test.ts.snap

---------

Co-authored-by: lijianan <574980606@qq.com>
2024-02-21 19:37:40 +08:00

16 lines
457 B
TypeScript

import React from 'react';
import { Button, Space, Tooltip } from 'antd';
const App: React.FC = () => (
<Space direction="vertical">
<Tooltip placement="topLeft" title="Prompt Text">
<Button>Align edge / </Button>
</Tooltip>
<Tooltip placement="topLeft" title="Prompt Text" arrow={{ pointAtCenter: true }}>
<Button>Arrow points to center / </Button>
</Tooltip>
</Space>
);
export default App;