mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
b9a6b7b578
* demo: update demo * add form * clear * add Select * add * fix style * fix style * fix * revert
20 lines
466 B
TypeScript
20 lines
466 B
TypeScript
import React from 'react';
|
|
import { Segmented, Space } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Space direction="vertical">
|
|
<Segmented options={['Map', 'Transit', 'Satellite']} disabled />
|
|
<Segmented
|
|
options={[
|
|
'Daily',
|
|
{ label: 'Weekly', value: 'Weekly', disabled: true },
|
|
'Monthly',
|
|
{ label: 'Quarterly', value: 'Quarterly', disabled: true },
|
|
'Yearly',
|
|
]}
|
|
/>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|