Switch
A toggle control for on/off states that take effect immediately. Use it for settings or preferences that apply instantly. For changes requiring a form submission, use a checkbox instead.
| Parameter | Description |
|---|---|
| label | Visible field label. |
| value | Selected boolean value. |
| if | Conditional rendering expression. |
Usage
xml<Switch label="Notifications" value="$settings.notifications" />