import React, { useState } from 'react'; import { Checkbox, ConfigProvider, Divider, Form, Input, Radio, Space } from 'antd'; import type { SizeType } from 'antd/es/config-provider/SizeContext'; 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;