--- order: 2 title: zh-CN: 骨架按钮、头像和输入框。 en-US: Skeleton button, avatar and input. --- ## zh-CN 骨架按钮、头像和输入框。 ## en-US Skeleton button, avatar and input. ```jsx import { Skeleton, Switch, Form, Radio } from 'antd'; class Demo extends React.Component { state = { buttonActive: false, avatarActive: false, inputActive: false, buttonSize: 'default', avatarSize: 'default', inputSize: '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, inputActive, buttonSize, avatarSize, inputSize, buttonShape, avatarShape, } = this.state; return (
Default Large Small Default Round Circle

Default Large Small Square Circle

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