markusenglund/react-switch
A draggable toggle-switch component for React. Check out the demo at: observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3274
- days_rel: n/a
- days_push: 627
- n_releases_24m: 0
Adoption not part of the score
1339 stars · 99 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A draggable, customizable toggle-switch component for React with built-in accessibility support. It ships as a tiny (<2.5 kB gzipped) npm package using inline styles so no separate CSS import is needed.
Use cases
- add a toggle switch to a react form
- draggable on/off switch component for react
- accessible toggle button for screen readers
- replace a checkbox with a switch in react
- customize switch size and color in react
- touch-friendly toggle switch for mobile web
When to choose
- you need a small, dependency-free React switch with sensible defaults
- accessibility (screen readers, keyboard/touch) is a requirement
- you want drag interaction and easy styling customization
When to avoid
- you are not using React
- you need a full component library with many UI primitives
- you need CSS-module or stylesheet-based theming rather than inline styles
Facets
library · maturity maintenance
ui-components form-handling frontend web-development accessibility browser cross-platform react toggle-switch draggable react-component checkbox nodejs
3 sources
- readme: https://github.com/markusenglund/react-switch · fetched 2026-08-28 · 2e044a851c5a
- homepage: https://react-switch.netlify.app/ · fetched 2026-08-29 · fdd66e62b856
- registry_npm: https://registry.npmjs.org/react-switch · fetched 2026-08-29 · 285ed55a5424
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| markusenglund/react-switch | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="markusenglund/react-switch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem