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.

ParameterDescription
labelVisible field label.
valueSelected boolean value.
ifConditional rendering expression.

Usage

xml
<Switch label="Notifications" value="$settings.notifications" />