mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
85dc67f1cc
* feature: segemented新增component token * feature: segemented新增component token * Apply suggestions from code review Signed-off-by: MadCcc <1075746765@qq.com> --------- Signed-off-by: MadCcc <1075746765@qq.com> Co-authored-by: xiaozisong <xiaozis@gantsoftware.com> Co-authored-by: MadCcc <1075746765@qq.com>
22 lines
521 B
TypeScript
22 lines
521 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, Segmented } from 'antd';
|
|
|
|
export default () => (
|
|
<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>
|
|
);
|