2023-07-28 17:39:38 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { Button, Checkbox, Input, Select, Space, Tooltip, InputNumber } from 'antd';
|
|
|
|
|
2023-07-28 21:09:02 +08:00
|
|
|
const WrapperTooltip: React.FC<{ children?: React.ReactNode }> = (props) => (
|
2023-07-28 17:39:38 +08:00
|
|
|
<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;
|