Switch
Boolean toggle for instant-activation settings.
Usage Notes
- Use for feature toggles, preference enable/disable, and instant-effect settings.
- Not suitable for confirmation-style toggles (use
checkbox). - Related components:
checkboxfor confirmations or multi-select. - Typically placed inside a
roworcolumn. - Use
$enabledandonchangefor state binding.
Enabled / disabled variants
namespace: "doc_switch_state_diff",
layout: {
"row:diff": {
"switch:enabled": {
label: "Enabled",
enabled: true
},
"switch:disabled": {
label: "Disabled"
},
"switch:enabled-not-available": {
label: "Enabled (not available)",
enabled: true,
disabled: true
},
"switch:disabled-not-available": {
label: "Disabled (not available)",
disabled: true
}
}
}
}