Switch
A toggle switch for enabling or disabling a setting.
Example
Usage
Switch Props
| Prop | Type | Default |
|---|---|---|
label | ReactNode | — |
labelSide | enum | "left" |
checkedText | string | — |
uncheckedText | string | — |
outerClassName | string | — |
checkedIcon | LucideIcon | — |
uncheckedIcon | LucideIcon | — |
type | enum | — |
checked | boolean | — |
required | boolean | — |
defaultChecked | boolean | — |
className | string | — |
children | ReactNode | — |
asChild | boolean | — |
onCheckedChange | function | — |