Model value
modelValue is whether the switch is on, bound two-way with v-model.
Label
label is the text beside the switch — clickable along with it.
Description
description is secondary text below the label, for what the toggle actually changes — the consequence, not a restatement of the label.
Required
required shows an asterisk after the label.
Disabled
disabled disables interaction with the switch.
Color
color is the track's color once the switch is on.
The active/on track color follows the color prop; the thumb color doesn't change — only the track does.
Indicator
indicator sets which side the switch sits on. end pushes it to the far edge, which reads better in a settings list.
indicator here just moves the switch left/right of its label, unlike Checkbox/Radio where indicator="hidden" removes it entirely — Switch has no hidden option.
API Reference
Generated from the component's source — props, slots and emits as the component actually declares them.
Props
"neutral" | "primary" | "secondary" | "success" | "error" | "warning" | "info" | "pending"'neutral'Slots
defaultEmits
update:modelValue[value: boolean]