Skip to content
JS
Package

react-switch

Draggable toggle-switch component for react

v7.1.0, 14 Dec 2024MITESM + CommonJSTypes: BundledReact
$ npm install react-switch

Key numbers

As of 25 Sept 2026
Weekly downloads
274.9k
-4% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v7.1.0
GitHub stars
1.3k
99 forks
Open issues / PRs
31 / 8
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 372k (21 Jul 2026)Low 152.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

274,898 downloads last week, 1,150,957 in the last month. The 12-month change of -4% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
7.1.0, 14 Dec 20241 year ago
First published
-
Last push to GitHub
14 Dec 2024649 days before the snapshot
Repository archived
No
Open issues
31
Open pull requests
8
Commits, last 52 weeks
0
Dependents on npm
431

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
95 kB
Dependencies (1)
prop-types
Peer dependencies (2)
reactreact-dom
npm install react-switch
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-switch@7.1.0/
  • unpkghttps://unpkg.com/react-switch@7.1.0/
  • esm.shhttps://esm.sh/react-switch@7.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.