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