Bind the value
Pass a Boolean to isOn and a setter to onChange.
Place it in a row
Inside a List or Form, Toggle renders its label and switch as one row. Keep the label descriptive.
API
Scroll horizontally to read every column.
| Prop | Type | Description |
|---|---|---|
label | string | The setting name. |
isOn | boolean | The current value. |
onChange | (isOn: boolean) => void | Receives the new value. |
disabled | boolean | Prevents changes. |
Related: Quick start, List, Screen.
:::