ant-design/components/segmented/demo/componentToken.tsx
kiner-tang(文辉) c878433e9a
feat: migrate less to token for Segmented (#42136)
* feat: migrate less to token for Segmented

* docs: update docs

* feat: add debug demo

* feat: optimize code

* feat: optimize code

* feat: optimize code

* style: reset style

* style: reset style

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code

* feat: optimize code
2023-05-18 22:21:53 +08:00

21 lines
484 B
TypeScript

import { ConfigProvider, Segmented } from 'antd';
import React from 'react';
export default () => (
<ConfigProvider
theme={{
components: {
Segmented: {
itemColor: '#222',
itemHoverColor: '#333',
itemHoverBg: 'rgba(0, 0, 0, 0.06)',
itemSelectedBg: '#aaa',
itemActiveBg: '#ccc',
},
},
}}
>
<Segmented options={['Daily', 'Weekly', 'Monthly', 'Quarterly', 'Yearly']} />
</ConfigProvider>
);