switch role

The ARIA role for an on/off control whose change takes effect immediately, like a light switch.

In more detail

A switch is usually a <button type="button" role="switch"> with aria-checked, toggled by click, Space or Enter. Screen readers announce it as on or off rather than checked or unchecked.

Related terms

Taught in

References