ant-design/components/switch/demo/loading.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

317 B

order title
4
zh-CN en-US
加载中 Loading

zh-CN

标识开关操作仍在执行中。

en-US

Mark a pending state of switch.

import { Switch } from 'antd';

export default () => (
  <>
    <Switch loading defaultChecked />
    <br />
    <Switch size="small" loading />
  </>
);