Form Inputs
Switch
A switch allows a user to turn a setting on or off.
Low power mode
Disabled#
Disabled off
Disabled on
Component props#
| Name | Type | Description |
|---|---|---|
| label | string | Label text displayed above the switch |
| isSelected | boolean | Controlled selected state |
| defaultSelected | boolean | Default selected state |
| isDisabled | boolean | Disables the switch |
| onChange | (isSelected: boolean) => void | Called when state changes |
