Switch
Turns a setting on or off, with immediate effect.
Send me a summary of new orders every evening.
API Reference
The Switch component wraps the Radix switch, with an optional label and description on either side.
| Prop | Type | Default |
|---|---|---|
checked | boolean | — |
defaultChecked | boolean | false |
onCheckedChange | (checked: boolean) => void | — |
label | ReactNode | — |
description | ReactNode | — |
placement | "left""right" | "left" |
disabled | boolean | false |