ant-design/components/input/demo/component-token.tsx

19 lines
459 B
TypeScript
Raw Normal View History

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;