{"versions":{"1.0.0":{"name":"@rc-component/switch","version":"1.0.0","description":"switch ui component for react","keywords":["react","react-component","react-switch","switch"],"homepage":"http://github.com/react-component/switch","bugs":{"url":"http://github.com/react-component/switch/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/switch.git"},"license":"MIT","main":"lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","gh-pages":"npm run docs:build && npm run docs:deploy","lint":"eslint .","lint-staged":"lint-staged","prepare":"husky install && dumi setup","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","start":"dumi dev","test":"umi-test"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.2.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.0","@types/classnames":"^2.2.10","@types/jest":"^29.4.0","@umijs/fabric":"^3.0.0","cheerio":"1.0.0-rc.12","dumi":"^2.0.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.0.0","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^8.0.1","less":"^4.1.3","lint-staged":"^15.1.0","@rc-component/np":"^1.0.3","prettier":"^3.1.0","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","umi-test":"^1.9.7"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/switch@1.0.0","gitHead":"86b71621b50571b176ceb5e1749d0c67d7384a3e","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Owz1mxhGqgzoPpf0CLPd7W4SS5wsDEe2bHo+APTgzMPqB5g+jRGYe+WO1SY9kw6Pif23xyY+nhkHBqSqkXifuw==","shasum":"5c6f3e1fbd0e4b4f5853f09605ed234be456d85a","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@rc-component/switch/-/switch-1.0.0.tgz","fileCount":8,"unpackedSize":20013,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCvIXjO1NdaT1B5iNZp8D2PSWKf/OB412u3uwAeistZeAIgf7oaA6pCFUDYcU9KWIAS+zoP8lnweUeMk4ANJkhAcZo="}],"size":5081},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/switch_1.0.0_1739776772135_0.0633375629324846"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-17T07:19:32.311Z","publish_time":1739776772311,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"@rc-component/switch","version":"1.0.1","description":"switch ui component for react","keywords":["react","react-component","react-switch","switch"],"homepage":"http://github.com/react-component/switch","bugs":{"url":"http://github.com/react-component/switch/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/switch.git"},"license":"MIT","main":"lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","gh-pages":"npm run docs:build && npm run docs:deploy","lint":"eslint .","lint-staged":"lint-staged","prepare":"husky install && dumi setup","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","start":"dumi dev","test":"umi-test"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.3.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.0","@types/classnames":"^2.2.10","@types/jest":"^29.4.0","@umijs/fabric":"^3.0.0","cheerio":"1.0.0-rc.12","dumi":"^2.0.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.0.0","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^8.0.1","less":"^4.1.3","lint-staged":"^15.1.0","@rc-component/np":"^1.0.3","prettier":"^3.1.0","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","umi-test":"^1.9.7"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/switch@1.0.1","gitHead":"8e2a58548048ad56a2ce322200796d41133a4379","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-wADOlMU8xUkNHmLiv0eLSxZ9j4W1eaj9GH7mWYbSKOI/N1CbdZtz6kIllT5gdBdN4GBEQj86OiGte46Ot0xj3Q==","shasum":"455dddb0549f2bb55b85ecc12e1716f96955a064","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@rc-component/switch/-/switch-1.0.1.tgz","fileCount":8,"unpackedSize":19971,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDJdmne6JEvHdiWZOW81Ij9vc8pv3/KmO/5/4emzGVuwQIgf1j9rButBRblSQuRJ+Xat5hZJFS4V/LOopGKhIgSV+I="}],"size":5112},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/switch_1.0.1_1758006871045_0.5645737717504784"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-16T07:14:31.247Z","publish_time":1758006871247,"_source_registry_name":"default","contributors":[]},"1.0.2":{"name":"@rc-component/switch","version":"1.0.2","description":"switch ui component for react","keywords":["react","react-component","react-switch","switch"],"homepage":"http://github.com/react-component/switch","bugs":{"url":"http://github.com/react-component/switch/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/switch.git"},"license":"MIT","main":"lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","gh-pages":"npm run docs:build && npm run docs:deploy","lint":"eslint .","lint-staged":"lint-staged","prepare":"husky install && dumi setup","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","start":"dumi dev","test":"umi-test"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.3.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.0","@types/classnames":"^2.2.10","@types/jest":"^29.4.0","@umijs/fabric":"^3.0.0","cheerio":"1.0.0-rc.12","dumi":"^2.0.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.0.0","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^8.0.1","less":"^4.1.3","lint-staged":"^15.1.0","@rc-component/np":"^1.0.3","prettier":"^3.1.0","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","umi-test":"^1.9.7"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/switch@1.0.2","gitHead":"4b11bd712d2de7dbc6025e2a6f4024f6590685f5","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-m0vjpdmrSYw55dXwxWxCwwM798lr1Jt30R7rVUOzRfPrnxIa/dJtN/BckR4gpPaDosjoRu/UPal3pLxQUIB/Rw==","shasum":"9f44dd22b2b9221d463f693175a39dfe3764c780","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@rc-component/switch/-/switch-1.0.2.tgz","fileCount":8,"unpackedSize":19975,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDL7ZA+MMDtoW7S1SkZi2UoP7ZVBV2vVSFrI8CzMqI94wIgHAalFbvPW9MBEbeMLrgZI7Jj//pMycRkvFSpeVGMoF4="}],"size":5113},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/switch_1.0.2_1758263474389_0.27528493327654213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-19T06:31:14.559Z","publish_time":1758263474559,"_source_registry_name":"default","contributors":[]},"1.0.3":{"name":"@rc-component/switch","version":"1.0.3","description":"switch ui component for react","keywords":["react","react-component","react-switch","switch"],"homepage":"http://github.com/react-component/switch","bugs":{"url":"http://github.com/react-component/switch/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/switch.git"},"license":"MIT","main":"lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","gh-pages":"npm run docs:build && npm run docs:deploy","lint":"eslint .","lint-staged":"lint-staged","prepare":"husky install && dumi setup","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","start":"dumi dev","test":"umi-test"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"dependencies":{"@rc-component/util":"^1.3.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.0","@rc-component/np":"^1.0.3","@types/jest":"^29.4.0","@types/node":"^24.5.2","@types/react":"^19.1.14","@types/react-dom":"^19.1.9","@umijs/fabric":"^3.0.0","cheerio":"1.0.0-rc.12","dumi":"^2.0.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.1","enzyme-to-json":"^3.0.0","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^8.0.1","less":"^4.1.3","lint-staged":"^15.1.0","prettier":"^3.1.0","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0","umi-test":"^1.9.7"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/switch@1.0.3","gitHead":"552d3205dea2f788d4de01bb2435275afd0d4b16","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-Jgi+EbOBquje/XNdofr7xbJQZPYJP+BlPfR0h+WN4zFkdtB2EWqEfvkXJWeipflwjWip0/17rNbxEAqs8hVHfw==","shasum":"d6efa8a17ca9c35f0838321c1cfe0b9adb954523","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@rc-component/switch/-/switch-1.0.3.tgz","fileCount":8,"unpackedSize":19941,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAysxtRWRLhfU/70ZQylXG9mgijiz2NHQdWjJ7zKPiZIAiAKOUdvLIMpimezpttrqdlTaHAnzbozUf52I9lre5GuPw=="}],"size":5130},"_npmUser":{"name":"anonymous","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/switch_1.0.3_1764298681409_0.6972996817013153"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-28T02:58:01.580Z","publish_time":1764298681580,"_source_registry_name":"default","contributors":[]},"1.0.4":{"_id":"@rc-component/switch@1.0.4","bugs":{"url":"https://github.com/react-component/switch/issues"},"dist":{"shasum":"029b6247717bb895f38f426f5b137ba7f2567732","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@rc-component/switch/-/switch-1.0.4.tgz","fileCount":10,"integrity":"sha512-tjs5udQJ9VIS379J0SETrZWCfQd+Y0jPVu04Th5x70iQj0xo1VlqM8+fXGV3Ska/0odK172fOhj4OhtF3ho3hg==","signatures":[{"sig":"MEUCIQChFGj5WKtPf7UeBBM5Ny3D7s7BfwOkaXncJbcj2VycOgIgf0ptIldwsW0ZPgW8W4S2Mfq9BNfI1DXs2iYM4Dy9AcU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID5PTgJoEC4yEGcluJL5PhW61xQ7YjyLcNs+M/bY+HiOAiAW4+IbFVqnWBHA8rn94Pru3UpUnH3M50/gi9D6hHyj2w=="}],"unpackedSize":24452,"size":6494},"main":"./lib/index","name":"@rc-component/switch","style":"./assets/index.css","types":"./es/index.d.ts","module":"./es/index","gitHead":"78a5dba30ab2d9f3e6a341e7592ed60887f813b6","license":"MIT","scripts":{"tsc":"tsc --noEmit","lint":"eslint .","test":"rc-test","build":"npm run compile && npm run docs:build","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky","coverage":"rc-test --coverage","gh-pages":"npm run compile && cross-env GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write --ignore-unknown .","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","prepublishOnly":"npm run compile && rc-np"},"version":"1.0.4","_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"homepage":"https://react-component.github.io/switch","keywords":["react","react-component","react-switch","switch"],"repository":{"url":"git+https://github.com/react-component/switch.git","type":"git"},"_npmVersion":"11.19.1","description":"Switch UI component for React","directories":{},"lint-staged":{"*":"prettier --write --ignore-unknown"},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_nodeVersion":"26.9.0","dependencies":{"clsx":"^2.1.1","@rc-component/util":"^1.11.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.4.38","less":"^4.6.7","husky":"^9.1.7","react":"^19.2.7","eslint":"^10.6.0","father":"^4.6.24","globals":"^17.7.0","rc-test":"^7.1.3","gh-pages":"^6.3.0","prettier":"^3.9.4","cross-env":"^10.1.0","react-dom":"^19.2.7","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/jest":"^30.0.0","@types/node":"^26.0.1","lint-staged":"^17.0.8","@types/react":"^19.2.17","@eslint/compat":"^2.1.0","@rc-component/np":"^1.0.4","@types/react-dom":"^19.2.3","typescript-eslint":"^8.62.1","eslint-plugin-jest":"^29.15.4","eslint-plugin-react":"^7.37.5","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","eslint-config-prettier":"^10.1.8","@testing-library/jest-dom":"^6.9.1","eslint-plugin-react-hooks":"^7.1.1","@rc-component/father-plugin":"^2.2.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/switch_1.0.4_1796229810664_0.42435583613520544"},"_cnpmcore_publish_time":"2026-12-02T16:43:30.758Z","publish_time":1796229810758,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.4"},"name":"@rc-component/switch","time":{"created":"2025-02-17T07:21:25.164Z","modified":"2026-12-02T16:43:44.342Z","1.0.0":"2025-02-17T07:19:32.311Z","1.0.1":"2025-09-16T07:14:31.247Z","1.0.2":"2025-09-19T06:31:14.559Z","1.0.3":"2025-11-28T02:58:01.580Z","1.0.4":"2026-12-02T16:43:30.758Z"},"readme":"<div align=\"center\">\n  <h1>@rc-component/switch</h1>\n  <p><sub><a href=\"https://ant.design\"><img alt=\"Ant Design\" height=\"14\" src=\"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg\" style=\"vertical-align: -0.125em;\" /></a> Part of the Ant Design ecosystem.</sub></p>\n  <p>🔘 Accessible React switch for boolean state with controlled and uncontrolled modes.</p>\n\n  <p>\n    <a href=\"https://npmjs.org/package/@rc-component/switch\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/@rc-component/switch.svg?style=flat-square\"></a>\n    <a href=\"https://npmjs.org/package/@rc-component/switch\"><img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/@rc-component/switch.svg?style=flat-square\"></a>\n    <a href=\"https://github.com/react-component/switch/actions/workflows/react-component-ci.yml\"><img alt=\"build status\" src=\"https://github.com/react-component/switch/actions/workflows/react-component-ci.yml/badge.svg\"></a>\n    <a href=\"https://app.codecov.io/gh/react-component/switch\"><img alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/react-component/switch/master.svg?style=flat-square\"></a>\n    <a href=\"https://bundlephobia.com/package/@rc-component/switch\"><img alt=\"bundle size\" src=\"https://img.shields.io/bundlephobia/minzip/@rc-component/switch?style=flat-square\"></a>\n    <a href=\"https://github.com/umijs/dumi\"><img alt=\"dumi\" src=\"https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\"></a>\n  </p>\n</div>\n\n<p align=\"center\">English | <a href=\"./README.zh-CN.md\">简体中文</a></p>\n\n\n## Highlights\n\n- Renders a native button with `role=\"switch\"` and `aria-checked` state.\n- Supports controlled and uncontrolled checked state.\n- Handles click and keyboard toggles with left and right arrow keys.\n- Provides content class/style slots for checked and unchecked labels.\n\n## Install\n\n```bash\nnpm install @rc-component/switch\n```\n\n## Usage\n\n```tsx pure\nimport Switch from '@rc-component/switch';\nimport '@rc-component/switch/assets/index.css';\n\nexport default () => <Switch checkedChildren=\"On\" unCheckedChildren=\"Off\" />;\n```\n\nOnline preview: https://switch.react-component.vercel.app/\n\n## Examples\n\nRun the local dumi site:\n\n```bash\nnpm install\nnpm start\n```\n\nThen open `http://localhost:8000`.\n\n## API\n\n| Name                | Type                                | Default       | Description                                |\n| ------------------- | ----------------------------------- | ------------- | ------------------------------------------ |\n| `autoFocus`         | boolean                             | -             | Focus the switch on mount.                 |\n| `checked`           | boolean                             | -             | Controlled checked state.                  |\n| `checkedChildren`   | React.ReactNode                     | -             | Content shown when checked.                |\n| `className`         | string                              | -             | Additional class name.                     |\n| `classNames`        | `{ content?: string }`              | -             | Semantic class names for internal content. |\n| `defaultChecked`    | boolean                             | false         | Initial checked state.                     |\n| `disabled`          | boolean                             | false         | Disable interaction.                       |\n| `loadingIcon`       | React.ReactNode                     | -             | Extra loading icon node.                   |\n| `onChange`          | `(checked, event) => void`          | -             | Triggered after checked state changes.     |\n| `onClick`           | `(checked, event) => void`          | -             | Triggered after click.                     |\n| `onKeyDown`         | React.KeyboardEventHandler          | -             | Key down handler.                          |\n| `prefixCls`         | string                              | `'rc-switch'` | Prefix class name.                         |\n| `style`             | React.CSSProperties                 | -             | Root style.                                |\n| `styles`            | `{ content?: React.CSSProperties }` | -             | Semantic styles for internal content.      |\n| `tabIndex`          | number                              | -             | Tab index.                                 |\n| `title`             | string                              | -             | Native title attribute.                    |\n| `unCheckedChildren` | React.ReactNode                     | -             | Content shown when unchecked.              |\n\n## Development\n\n```bash\nnpm install\nnpm start\nnpm test\nnpm run tsc\nnpm run compile\nnpm run build\n```\n\nThe dumi site runs at `http://localhost:8000` by default.\n\n## Release\n\n```bash\nnpm run prepublishOnly\n```\n\nThe release flow is handled by `@rc-component/np` through the `rc-np` command after the package build.\n\n## License\n\n@rc-component/switch is released under the [MIT](./LICENSE) license.","users":{}}