Switch
shadcn/uiA control that allows the user to toggle between checked and not checked.
Installation
Props
<Switch />
Name
Type
className
string
variant
"raised" | "ghost" | "outline"
checked
boolean
defaultChecked
boolean
onCheckedChange
(checked: boolean) => void
disabled
boolean
required
boolean
name
string
value
string