--- 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, } from 'antd'; const FormSizeDemo = () => { const [componentSize, setComponentSize] = useState('small'); return (
{ setComponentSize(e.target.value); }} > Small Middle Large