Switch

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/switch

API Reference

checked
boolean
Default—
onCheckedChange
(checked: boolean) => void
Default—
disabled?
boolean
Default—
label?
string
Default—
ariaLabel?
string
Default—
className?
string
Default—
Also on React Native. A weighty thumb that squishes and stretches.

Updated