mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +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;
|