Skip to content

Switch ​

VSwitch is a low-level boolean toggle for settings and form fields.

Demo ​

Notification settingsChoose which updates can interrupt you
On

Motion

The thumb uses a reversible 180ms translation. Holding the control briefly stretches the thumb along its travel direction; release or rapid reversal retargets from the current visual state. Reduced motion keeps only the immediate position change.

Props ​

PropTypeDefaultDescription
modelValuebooleanfalseCurrent value
disabledbooleanfalseDisabled state
loadingbooleanfalseLoading state

Events ​

EventPayloadDescription
update:modelValuebooleanValue updated
changebooleanValue changed