Skip to main content Red Hat Design System logo Contribute on Github v2.0.1 Home
About About the design systemHow we buildRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridPersonalization patternsSpacingTypography
Tokens Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries
Elements All elements Accordion Alert Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Call to action Card Code block Dialog Footer Health index Icon Navigation (primary)Planned Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Patterns All patternsAnnouncementCardDisclosureFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTabsTileVideo thumbnail
Accessibility FundamentalsContentDesignDevelopmentContributorsQa and testingAssistive technologiesResources
Design/code status Release notes Get support

Switch

Overview Style Guidelines Code Demos Accessibility

Overview

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
© 2021-2024 Red Hat, Inc. Deploys by Netlify