ant-design/components/switch/demo/size.md
2016-10-21 11:09:24 +08:00

320 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);