--- order: 2 title: zh-CN: 骨架按钮和头像 en-US: Skeleton button and avatar --- ## zh-CN 骨架按钮和头像。 ## en-US Skeleton button and avatar. ```jsx import { Skeleton, Switch, Form, Radio } from 'antd'; class Demo extends React.Component { state = { buttonActive: false, avatarActive: false, buttonSize: 'default', avatarSize: 'default', buttonShape: 'default', avatarShape: 'circle', }; handleActiveChange = prop => checked => { this.setState({ [prop]: checked }); }; handleSizeChange = prop => e => { this.setState({ [prop]: e.target.value }); }; handleShapeChange = prop => e => { this.setState({ [prop]: e.target.value }); }; render() { const { buttonActive, avatarActive, buttonSize, avatarSize, buttonShape, avatarShape, } = this.state; return (
Default Large Small Default Round Circle

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