--- order: 2.1 title: zh-CN: 按钮/头像/输入框/图像 en-US: Button/Avatar/Input/Image --- ## zh-CN 骨架按钮、头像、输入框和图像。 ## en-US Skeleton Button, Avatar, Input and Image. ```jsx import { Skeleton, Space, Divider, Switch, Form, Radio } from 'antd'; class Demo extends React.Component { state = { active: false, block: false, size: 'default', buttonShape: 'default', avatarShape: 'circle', }; handleActiveChange = checked => { this.setState({ active: checked }); }; handleBlockChange = checked => { this.setState({ block: checked }); }; handleSizeChange = e => { this.setState({ size: e.target.value }); }; handleShapeChange = prop => e => { this.setState({ [prop]: e.target.value }); }; render() { const { active, size, buttonShape, avatarShape, block } = this.state; return ( <>



Default Large Small Default Round Circle Square Circle
); } } ReactDOM.render(, mountNode); ```