ToggleSwitch component uses a hidden native checkbox element with switch role internally that is only visible to screen readers. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby, aria-label props.
Key | Function |
---|---|
tab | Moves focus to the switch. |
space | Toggles the checked state. |