import React, { useState } from 'react'; import { DownloadOutlined } from '@ant-design/icons'; import { Button, Divider, Flex, Radio } from 'antd'; import type { ConfigProviderProps } from 'antd'; type SizeType = ConfigProviderProps['componentSize']; const App: React.FC = () => { const [size, setSize] = useState('large'); // default is 'middle' return ( <> setSize(e.target.value)}> Large Default Small Preview ); }; export default App;