ant-design/components/switch/demo/size.md
2017-01-19 15:22:53 +08:00

324 B

order title
3
zh-CN en-US
两种大小 Two sizes

zh-CN

size="small" 表示小号开关。

en-US

size="small" represents a small sized switch.

import { Switch } from 'antd';

ReactDOM.render(
  <div>
    <Switch />
    <br />
    <Switch size="small" />
  </div>
, mountNode);