import { Button, Card, ConfigProvider, DatePicker, Divider, Input, Radio, Select, Space, Table, Tabs, } from 'antd'; import type { SizeType } from 'antd/es/config-provider/SizeContext'; import React, { useState } from 'react'; const { TabPane } = Tabs; const App: React.FC = () => { const [componentSize, setComponentSize] = useState('small'); return ( <> { setComponentSize(e.target.value); }} > Small Middle Large Content of Tab Pane 1 Content of Tab Pane 2 Content of Tab Pane 3