ant-design/components/input-number/demo/debug-token.tsx
MadCcc 2cff1fce48
fix: InputNumber should respect padding token (#46878)
* fix: inputnumber padding token

* chore: update

* chore: clean

* chore: update
2024-01-10 11:57:58 +08:00

45 lines
845 B
TypeScript

import React from 'react';
import { ConfigProvider, InputNumber, Space } from 'antd';
export default () => (
<ConfigProvider
theme={{
components: {
InputNumber: {
handleWidth: 50,
},
},
}}
>
<Space>
<InputNumber />
<ConfigProvider
theme={{
components: {
InputNumber: {
handleWidth: 25,
},
},
}}
>
<InputNumber />
</ConfigProvider>
<ConfigProvider
theme={{
components: {
InputNumber: {
paddingBlockLG: 12,
paddingInlineLG: 16,
},
},
}}
>
<InputNumber size="large" />
<InputNumber size="large" prefix="$" />
</ConfigProvider>
</Space>
</ConfigProvider>
);