--- order: 2 title: zh-CN: 自定义尺寸 en-US: Custom size --- ## zh-CN 自定义尺寸,适应在各种容器中展示。 ## en-US Custom sizes to fit in a variety of containers. ```tsx import type { RadioChangeEvent } from 'antd'; import { Button, Descriptions, Radio } from 'antd'; import React, { useState } from 'react'; const App: React.FC = () => { const [size, setSize] = useState<'default' | 'middle' | 'small'>('default'); const onChange = (e: RadioChangeEvent) => { console.log('size checked', e.target.value); setSize(e.target.value); }; return (