--- 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 (
default middle small

Edit} > Cloud Database Prepaid 18:00:00 $80.00 $20.00 $60.00 Data disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Storage space: 10 GB
Replication factor: 3
Region: East China 1


Edit}> Cloud Database Prepaid 18:00:00 $80.00 $20.00 $60.00
); }; export default App; ```