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