Forms | SwitchRow
SwitchRow#
Description#
Option row with integrated toggle, where the entire row is the button. Includes optional icon, description and footer slot.
Props#
modelValue(boolean) — Toggle state (v-model). Required.label(string) — Option name (visible text). Required.description(string) — Description line below the name.icon(string) — Theme icon name.iconType('icon' | 'symbol') — Icon type. Default:'icon'.disabled(boolean) — Disables the row. Default:false.
Emits#
update:modelValue(value: boolean) — Emitted when the row is clicked.
Slots#
pie— Additional content below the description, aligned with the text column.
Usage#
| |
Notes#
- The entire row is a
<button role="switch">, so the click area is large and keyboard-driven (Space) without manualtabindex. - The visible text is the button’s accessible name; no
aria-labelis needed. iconis shown in a bordered box that changes style when the toggle is active.- The
pieslot aligns with the text column, not with the left edge of the container.