Switch
The Switch component is used to toggle between two states.
Installation
Usage
Variants
Disabled Switch
Props
Name | Type | Default | Description |
---|---|---|---|
className | string | "" | Additional class names for the switch. |
disabled | boolean | false | Flag to disable the switch. |
Examples
Switch with lables
Default Checked Switch
onCheckedChange function
false