import type { RadioChangeEvent } from 'antd'; import { Divider, Form, Radio, Skeleton, Space, Switch } from 'antd'; import { DotChartOutlined } from '@ant-design/icons'; import React, { useState } from 'react'; type SizeType = 'default' | 'small' | 'large'; type ButtonShapeType = 'circle' | 'square' | 'round' | 'default'; type AvatarShapeType = 'circle' | 'square'; const App: React.FC = () => { const [active, setActive] = useState(false); const [block, setBlock] = useState(false); const [size, setSize] = useState('default'); const [buttonShape, setButtonShape] = useState('default'); const [avatarShape, setAvatarShape] = useState('circle'); const handleActiveChange = (checked: boolean) => { setActive(checked); }; const handleBlockChange = (checked: boolean) => { setBlock(checked); }; const handleSizeChange = (e: RadioChangeEvent) => { setSize(e.target.value); }; const handleShapeButton = (e: RadioChangeEvent) => { setButtonShape(e.target.value); }; const handleAvatarShape = (e: RadioChangeEvent) => { setAvatarShape(e.target.value); }; return ( <>





Default Large Small Default Square Round Circle Square Circle
); }; export default App;