ant-design/components/tooltip/demo/arrow-point-at-center.tsx
lijianan b9a6b7b578
demo: update demo (#40318)
* demo: update demo

* add form

* clear

* add Select

* add

* fix style

* fix style

* fix

* revert
2023-01-19 15:37:54 +08:00

16 lines
444 B
TypeScript

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