mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
24 lines
653 B
TypeScript
24 lines
653 B
TypeScript
|
import React from 'react';
|
||
|
import { Flex, TimePicker } from 'antd';
|
||
|
|
||
|
const { RangePicker } = TimePicker;
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Flex vertical gap={12}>
|
||
|
<Flex gap={8}>
|
||
|
<TimePicker placeholder="Filled" />
|
||
|
<RangePicker placeholder={['Filled', '']} />
|
||
|
</Flex>
|
||
|
<Flex gap={8}>
|
||
|
<TimePicker variant="filled" placeholder="Filled" />
|
||
|
<RangePicker variant="filled" placeholder={['Filled', '']} />
|
||
|
</Flex>
|
||
|
<Flex gap={8}>
|
||
|
<TimePicker variant="borderless" placeholder="Borderless" />
|
||
|
<RangePicker variant="borderless" placeholder={['Borderless', '']} />
|
||
|
</Flex>
|
||
|
</Flex>
|
||
|
);
|
||
|
|
||
|
export default App;
|