Components

Switch

Let users toggle a setting on or off.

The component renders a native checkbox input associated with its visible label, so assistive technology announces the label together with the on/off state. Validation errors set aria-invalid on the input and are linked to it via aria-describedby; extra ARIA attributes can be passed through the accessibility prop.

Keyboard navigation

KeysAction
TabFocus lands on the (non-disabled) switch.
SpaceToggles the on/off state.
Dr. Max Design System • © 2026