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.

Specimen
Harness screenshot of neu-toggle at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of neu-toggle at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of neu-toggle at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for neu-toggle
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal17.8 KB (83.2 KB build, 65.4 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for neu-toggle
Declared dependenciesnone declared
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno 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-originals
License
MIT
Record published
2026-08-13

Alternatives

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.