Switch
A toggle switch for binary choices.
Examples
Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | — | Controlled checked state |
| onCheckedChange | (checked: boolean) => void | — | Change handler |
| disabled | boolean | — | Disabled state |
A toggle switch for binary choices.
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | — | Controlled checked state |
| onCheckedChange | (checked: boolean) => void | — | Change handler |
| disabled | boolean | — | Disabled state |