mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
24 lines
551 B
TypeScript
24 lines
551 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, Segmented } from 'antd';
|
|
|
|
const Demo: React.FC = () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: {
|
|
Segmented: {
|
|
itemColor: '#222',
|
|
itemHoverColor: '#333',
|
|
itemHoverBg: 'rgba(0, 0, 0, 0.06)',
|
|
itemSelectedBg: '#aaa',
|
|
itemActiveBg: '#ccc',
|
|
itemSelectedColor: '#fff',
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} />
|
|
</ConfigProvider>
|
|
);
|
|
|
|
export default Demo;
|