2023-03-05 17:51:19 +08:00
|
|
|
import React from 'react';
|
2024-12-05 14:51:56 +08:00
|
|
|
import { Button, Flex, Tooltip } from 'antd';
|
|
|
|
|
|
|
|
const zeroWidthEle = <div />;
|
2023-03-05 17:51:19 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
2024-12-05 14:51:56 +08:00
|
|
|
<Flex vertical gap={72} align="flex-start">
|
|
|
|
<span />
|
|
|
|
<Tooltip
|
|
|
|
open
|
|
|
|
title="Thanks for using antd. Have a nice day !"
|
|
|
|
arrow={{ pointAtCenter: true }}
|
|
|
|
placement="topLeft"
|
|
|
|
>
|
|
|
|
<Button>Point at center</Button>
|
|
|
|
</Tooltip>
|
|
|
|
<Tooltip open title={zeroWidthEle} placement="topLeft">
|
|
|
|
<Button>Min Width</Button>
|
|
|
|
</Tooltip>
|
|
|
|
<Tooltip open title={zeroWidthEle} placement="top">
|
|
|
|
<Button>Min Width</Button>
|
|
|
|
</Tooltip>
|
|
|
|
</Flex>
|
2023-03-05 17:51:19 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|