Components
← All components

Switch

stimeo--switch

An accessible on/off toggle button driven entirely by aria-checked.

  • Switch

The stimeo--switch controller implements the WAI-ARIA Switch pattern. The control's state lives solely in aria-checked; clicking or pressing Space/Enter toggles it, and an stimeo--switch:changed event is dispatched with the new boolean state. The library provides behavior only — styling (keyed off aria-checked) is owned by this Playground.

running

Keyboard

KeyAction
Space / Enter Toggle the switch on or off.