Skip to content

Switch

An on/off toggle you can tap, press or drag, with a thumb that stretches under your finger and an optional pending state for saves.

bypreetfrom Hextaui

Loading preview

Installation

terminal
pnpm dlx layro-cli add @preetsuthar17/switch

New project? Start with init. Writes third-party code and installs packages with scripts off.

Code

Dependencies
Demo

Sign in to see the code

Free, with GitHub, Google or email. The install command above works without an account.

Sign in

Versions

  1. 1.0.0 · current

    Nov 7, 2026

    First release.

Similar components