import React, { useState } from 'react'; import { Button, Card, ConfigProvider, DatePicker, Divider, Input, Radio, Select, Table, Tabs, } from 'antd'; import type { SizeType } from 'antd/es/config-provider/SizeContext'; 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