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