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