import React, { useState } from 'react'; import { Checkbox, ConfigProvider, Divider, Form, Input, Radio, Space } from 'antd'; import type { ConfigProviderProps } from 'antd'; type SizeType = ConfigProviderProps['componentSize']; const ConfigDisplay = () => { const { componentDisabled, componentSize } = ConfigProvider.useConfig(); return ( <> ); }; const App: React.FC = () => { const [componentSize, setComponentSize] = useState('small'); const [disabled, setDisabled] = useState(true); return (
{ setComponentSize(e.target.value); }} > Small Middle Large setDisabled(e.target.checked)}> Form disabled
); }; export default App;