2023-11-09 17:15:21 +08:00
|
|
|
import React from 'react';
|
2024-04-08 14:04:08 +08:00
|
|
|
import { Button, Checkbox, Input, InputNumber, Select, Space, Tooltip } from 'antd';
|
2023-11-09 17:15:21 +08:00
|
|
|
|
|
|
|
const WrapperTooltip: React.FC<{ children?: React.ReactNode }> = (props) => (
|
|
|
|
<Tooltip title="Thanks for using antd. Have a nice day!" {...props} />
|
|
|
|
);
|
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<Space>
|
|
|
|
<WrapperTooltip>
|
|
|
|
<Button disabled>Disabled</Button>
|
|
|
|
</WrapperTooltip>
|
|
|
|
<WrapperTooltip>
|
|
|
|
<Input disabled placeholder="disabled" />
|
|
|
|
</WrapperTooltip>
|
|
|
|
<WrapperTooltip>
|
|
|
|
<InputNumber disabled />
|
|
|
|
</WrapperTooltip>
|
|
|
|
<WrapperTooltip>
|
|
|
|
<Checkbox disabled />
|
|
|
|
</WrapperTooltip>
|
|
|
|
<WrapperTooltip>
|
|
|
|
<Select disabled />
|
|
|
|
</WrapperTooltip>
|
|
|
|
</Space>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|