mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
20 lines
482 B
TypeScript
20 lines
482 B
TypeScript
import React from 'react';
|
|
import { Flex, Segmented } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex gap="small" align="flex-start" vertical>
|
|
<Segmented options={['Map', 'Transit', 'Satellite']} disabled />
|
|
<Segmented
|
|
options={[
|
|
'Daily',
|
|
{ label: 'Weekly', value: 'Weekly', disabled: true },
|
|
'Monthly',
|
|
{ label: 'Quarterly', value: 'Quarterly', disabled: true },
|
|
'Yearly',
|
|
]}
|
|
/>
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|