mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
bea39b1db5
* feat: Input support contentFontSize contentLineHeight token * feat: rename inputFontSize
19 lines
459 B
TypeScript
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;
|