--- order: 2.1 title: zh-CN: 按钮/头像/输入框/图像/自定义节点 en-US: Button/Avatar/Input/Image/Node --- ## zh-CN 骨架按钮、头像、输入框、图像和自定义节点。 ## en-US Skeleton Button, Avatar, Input, Image and Node. ```tsx 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'; 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('square'); 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 Square Round Circle Square Circle
); }; export default App; ```