ant-design/components/checkbox/demo/custom-line-width.tsx
afc163 12db87449b
style: fix Checkbox style when customize token.lineWidth (#46431)
* style: fix Checkbox style when customize token.lineWidth

* test: update snapshot
2023-12-13 21:46:25 +08:00

25 lines
419 B
TypeScript

import React from 'react';
import { Checkbox, ConfigProvider } from 'antd';
const App: React.FC = () => (
<>
<ConfigProvider
theme={{
cssVar: false,
components: {
Checkbox: {
lineWidth: 6,
},
},
}}
>
<Checkbox checked />
<Checkbox />
</ConfigProvider>
<Checkbox checked />
<Checkbox />
</>
);
export default App;