import React, { useState } from 'react'; import { Button, Card, ConfigProvider, DatePicker, Divider, Input, Radio, Select, Space, Table, Tabs, } from 'antd'; import type { ConfigProviderProps } from 'antd'; type SizeType = ConfigProviderProps['componentSize']; const App: React.FC = () => { const [componentSize, setComponentSize] = useState('small'); return ( <> { setComponentSize(e.target.value); }} > Small Middle Large