import React, { useState } from 'react'; import type { ConfigProviderProps, RadioChangeEvent } from 'antd'; import { DatePicker, Radio, Space } from 'antd'; type SizeType = ConfigProviderProps['componentSize']; const { RangePicker } = DatePicker; const App: React.FC = () => { const [size, setSize] = useState('middle'); const handleSizeChange = (e: RadioChangeEvent) => { setSize(e.target.value); }; return ( Large middle Small ); }; export default App;