ant-design/components/input/demo/component-token.tsx
叶枫 bea39b1db5
feat: Input support inputFontSize token (#46875)
* feat: Input support contentFontSize contentLineHeight token

* feat: rename inputFontSize
2024-01-09 15:18:44 +08:00

19 lines
459 B
TypeScript

import React from 'react';
import { ConfigProvider, Input } from 'antd';
const App: React.FC = () => (
<>
<ConfigProvider theme={{ token: { controlHeight: 28 } }}>
<Input placeholder="Basic usage" />
</ConfigProvider>
<ConfigProvider
componentSize="small"
theme={{ token: {}, components: { Input: { inputFontSizeSM: 12 } } }}
>
<Input placeholder="Basic usage" />
</ConfigProvider>
</>
);
export default App;