Switch provides built-in compliance with
WAI-ARIA support is achieved through the attributes like
aria-disabled. It helps the people with disabilities by providing information about the widget for assistive technology in the screen readers, such as screen readers.
|role||Indicates the switch component.|
|aria-checked||Indicates whether the input is checked, unchecked.|
|aria-disabled||Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.|
|Space||When the switch has focus, pressing the Space key changes the state of the switch.|