Skip to content

Switch ​

Last updated

Demo ​

switch/demo.vue
brand solid
accent cyan
small
disabled

Current: brand = true · accent = true

Switch uses Reka UI for switch role, Space/Enter and focus. Shared tokens define its appearance.

Props ​

PropDescriptionTypeDefault
v-modelOn/off statebooleanfalse
variantOn-state trackbrand | accentbrand
toneAccent hue, only for accentblue | sun | cyan | coral | pink | greenblue
sizeSizesm | mdmd
disabledDisabledbooleanfalse

Tone defaults to blue and affects accent only. Legacy aurora aliases accent. Use consistent colors for equivalent states in a workflow.

Name the purpose through aria-label or an associated label. Space/Enter toggle; disabled controls do not respond. Name, value and required forward to Reka for native form submission.