ant-design/components/input-number/demo/debug-token.md
MadCcc 932398333e
test: add override component token test (#36257)
* test: add override component token test

* test: update snapshot
2022-06-27 21:26:12 +08:00

40 lines
610 B
Markdown

---
order: 999
title:
zh-CN: 覆盖组件样式
en-US: Override Component Style
debug: true
---
```tsx
import { ConfigProvider, InputNumber, Space } from 'antd';
export default () => (
<ConfigProvider
theme={{
override: {
InputNumber: {
handleWidth: 50,
},
},
}}
>
<Space>
<InputNumber />
<ConfigProvider
theme={{
override: {
InputNumber: {
handleWidth: 25,
},
},
}}
>
<InputNumber />
</ConfigProvider>
</Space>
</ConfigProvider>
);
```