Measured entry
neu-toggle
switchneumorphismfirst party
A single React checkbox switch with a neumorphic track, animated thumb, optional label, disabled state, and controlled or uncontrolled state handling. It ships as source JSX, imports React's state hook, and relies on Tailwind utilities including arbitrary shadow classes for its complete appearance.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 17.8 KB (83.2 KB build, 65.4 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A compact, functional choice for a light neumorphic interface. It builds and mounts on its own and covers controlled, uncontrolled, and disabled use, but the fixed palette and missing visible focus treatment make it better as a styled starting point than a universal switch.
Use it if
- You need a labeled on/off control that can work with either local state or parent-managed state.
- Your interface already uses a light neumorphic surface and can preserve the component's intended shadows and colors.
- You want a dependency-free switch beyond React and your existing Tailwind setup.
Skip it if
- Your product uses dark, high-contrast, or heavily themed surfaces where its fixed light colors will look out of place.
- You need a visible keyboard focus treatment without modifying the component.
- You need a form value or switch semantics beyond the included checkbox behavior.
Install
| Declared dependencies | none declared |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
First-party component from the sir-originals set. Add React and configure Tailwind to scan this JSX file. Ensure arbitrary shadow utilities and the screen-reader-only utility are available, then copy the component into the project. No provider or component-library setup is required.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
mrkeyoor/sir-originalsAlternatives
Other published entries for the switch pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- clay-toggleclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- ruixen-scrub-datetimeunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.2KB
- Bare
- pass
- Prov
- NO
- shadcn-switchunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 34.4KB
- Bare
- pass
- Prov
- NO
- hextaui-switchminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.5KB
- Bare
- pass
- Prov
- NO
- hextaui-tabsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 39.0KB
- Bare
- pass
- Prov
- NO
- ruixen-animated-theme-togglerunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 61.8KB
- Bare
- pass
- Prov
- NO