Use Field to compose a label, helper text, and validation message around this control.
Usage
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | - | Whether the switch is checked |
defaultChecked | boolean | - | The default checked state for uncontrolled usage |
onCheckedChange | (checked: boolean) => void | - | Callback when the checked state changes |
disabled | boolean | false | Whether the switch is disabled |
id | string | - | HTML id attribute for label association |