Forms · ui · 3K

Switch

On/off switch drawn as a 1991 control: a small rounded track with a square knob that jumps right and checkers the track when on.

Install

pnpm dlx shadcn@latest add @s7ui/switch

Example

This example also uses @s7ui/label.

Info

Files:
components/ui/switch.tsx
Uses:
@s7ui/theme
Packages:
radix-ui