import React, { useState } from 'react'; import type { RadioChangeEvent } from 'antd'; import { Button, Descriptions, Radio } from 'antd'; 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 (