--- order: 2 title: zh-CN: 组件尺寸 en-US: Component size --- ## zh-CN 修改默认组件尺寸。 ## en-US Config component default size. ```jsx import React, { useState } from 'react'; import { ConfigProvider, Radio, Input, Button, Select, DatePicker, Divider, Table, Card, Tabs, } from 'antd'; const { TabPane } = Tabs; const FormSizeDemo = () => { 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