--- order: 2 title: zh-CN: 组件尺寸 en-US: Component size --- ## zh-CN 修改默认组件尺寸。 ## en-US Config component default size. ```tsx import { Button, Card, ConfigProvider, DatePicker, Divider, Input, Radio, Select, 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