UI95

Switch

shadcn switch as a two-state pixel toggle with a dithered on side.

Examples

Aoff
Bon
Csm off
Dsm on
Edisabled off
Fdisabled on
Ginvalid

Installation

npx shadcn@latest add https://www.ui95.dev/r/switch.json

Run it in a Radix shadcn project that already has the UI95 theme.

API reference

Switch

PropTypeDefault
size"default" | "sm""default"

Sounds

  • switch.on
  • switch.off

Updated Nov 5, 2026