mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
5727ce00ef
* demo: add disabled demo * demo: Modify tooltip Disable demo Description * demo: Modify tooltip Disable demo Description
29 lines
732 B
TypeScript
29 lines
732 B
TypeScript
import React from 'react';
|
|
import { Button, Checkbox, Input, Select, Space, Tooltip, InputNumber } from 'antd';
|
|
|
|
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;
|