Skip to main content Red Hat Design System logo Contribute on Github

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
WebRH:
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
WebRH Planned Component should be added to the WebRH repo at a later date
© 2021-2024 Red Hat, Inc. Deploys by Netlify