spec checked

WAI-ARIA APG Switch Pattern

Defines switches as binary on/off inputs, requires stable labels, documents Space and optional Enter toggling, and maps role switch with aria-checked state.

Open source

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Toggle switch Choose a toggle switch for a single setting with exactly two states that can be applied immediately. Activating the switch changes only the named setting between on and off. APG switch guidance defines binary on/off semantics, stable labels, accessible names, aria-checked state, and keyboard toggling expectations.

Evidence Role

This source is treated as spec evidence. Use it to validate the decision rules above, not as a visual style reference.

Publisher: W3C Web Accessibility Initiative. Last checked: .