Inputs

Sliding Thumb Switch

An on/off switch built from a hidden checkbox: a pill track that recolors and a round thumb that slides to the opposite edge.

Using Sliding Thumb Switch

An on/off switch built from a hidden checkbox: a pill track that recolors and a round thumb that slides to the opposite edge.

Try the live preview with a pointer and keyboard, then check focus visibility and the narrow layout in your own page. Use the plate number or slug when asking your coding agent to fetch this component.

Props: checked, accentColor, disabled

Which frameworks are available?

The catalog lists these versions: react, vue, svelte, astro, html. The live preview on this page runs React.

How do I access the implementation?

The code, framework versions and installation commands are available in the workbench above.

Connect your agent

Nearby