label | string | - | Text beside the track. |
| Text beside the track. |
description | string | - | A line under the label, for the consequence of turning it on. |
| A line under the label, for the consequence of turning it on. |
defaultChecked | boolean | false | |
|
checked | boolean | - | Controlled state. |
| Controlled state. |
onCheckedChange | (checked: boolean) => void | - | |
|
icon | ReactNode | - | |
|
ariaLabel | string | - | The accessible name, for a switch with no visible label. |
| The accessible name, for a switch with no visible label. |
size | sm | md | lg | md | Track and thumb together. |
| Track and thumb together. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Blocks interaction and dims the whole control, label included. |
| Blocks interaction and dims the whole control, label included. |
animated | boolean | true | |
|
className | string | - | |
|
focus | boolean | string | true | |
|