Switch

Overview Style Guidelines Code Demos Accessibility

Overview

A switch toggles the state of a setting (between on and off). Switches and checkboxes can often be used interchangeably, but the switch provides a more explicit, visible representation on a setting.

example of switch that's on

Status

What do these mean?
Figma library:
Ready
RH Elements:
Ready
RH Shared Libs:
Planned

Sample element

Message when on

When to use

  • When users need to choose between two binary actions
  • When users need to immediately activate or deactivate something
  • When users need to toggle an item on or off
Property Status Meaning
Figma library Ready Component is available in the Figma library
RH Elements Ready Component is available in the RH Elements repo
RH Shared Libs Planned Component should be added to the RH Shared Libs repo at a later date