HTML ARIA role="switch"


Example

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

<select role="switch" aria-checked="false">
  <option>On</option>
  <option selected>Off</option>
</select>