role switch

suggest change

A type of checkbox that represents on/off values, as opposed to checked/unchecked values.

<button type="button" role="switch" aria-checked="false">Notifications</button>

Do not put role="switch" on a <select>. A switch is a checkable on/off control, like a checkbox. The aria-checked value must be true or false.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents