# @dojo/widgets/switch widget Dojo's `Switch` widget provides an on/off toggle that uses the native `` as a base. ## Features - Creates a toggle switch - Correctly handles a11y attributes ### Accessibility Features `Switch` ensures that the proper attributes (ARIA or otherwise) are set along with classes when properties such as `disabled`, `readOnly`, `invalid`, etc. are used. Only one of `onLabel` and `offLabel` will be read, based on the current state. E.g. if checked with a label of "Sample Checkbox", the full screen reader-accessible label would read "Sample Checkbox On".