Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographySpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardTabsFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTileVideo thumbnail
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Chip

OverviewStyleGuidelinesCodeAccessibilityDemos
ImportingUsagerh-chiprh-chip-groupImportingUsagerh-chiprh-chip-group

Importing

Add rh-chip to your page with this import statement:

<script type="module">
  import '@rhds/elements/rh-chip/rh-chip.js';
</script>
Copy to Clipboard Wrap lines

To learn more about installing RHDS elements on your site using an import map read our getting started docs.

Usage

<rh-chip-group>
  <rh-chip>Edge</rh-chip>
  <rh-chip checked>AI/ML</rh-chip>
  <rh-chip>DevOps</rh-chip>
</rh-chip-group>

<script type="module">
  import '@rhds/elements/rh-chip/rh-chip-group.js';
</script>
Copy to Clipboard Wrap lines

rh-chip

A chip is used to filter information or indicate that a selection was made.

Slots 1
Slot Name Description

The label of the checkbox

Attributes 3
Attribute DOM Property Description Type Default
checked checked

Whether the chip is checked.

boolean
false
disabled disabled

Whether the chip is disabled.

boolean
false
value value

Set a custom string for the input's value attribute. Defaults to on.

string | undefined
unknown
Methods 0
None
Events 1
Event Name Description
chip-checked

when chip is checked/unchecked

CSS Shadow Parts 1
Part Name Description
chip

The main chip container

CSS Custom Properties 0
None
Design Tokens 23
Token Copy
--rh-border-radius-default
Full CSS Variable Permalink to this token
--rh-border-radius-pill
Full CSS Variable Permalink to this token
--rh-border-width-md
Full CSS Variable Permalink to this token
--rh-border-width-sm
Full CSS Variable Permalink to this token
--rh-color-blue-10
Full CSS Variable Permalink to this token
--rh-color-blue-30
Full CSS Variable Permalink to this token
--rh-color-blue-50
Full CSS Variable Permalink to this token
--rh-color-blue-70
Full CSS Variable Permalink to this token
--rh-color-border-interactive
Full CSS Variable Permalink to this token
--rh-color-border-subtle
Full CSS Variable Permalink to this token
--rh-color-gray-30
Full CSS Variable Permalink to this token
--rh-color-gray-40
Full CSS Variable Permalink to this token
--rh-color-surface-dark
Full CSS Variable Permalink to this token
--rh-color-text-secondary
Full CSS Variable Permalink to this token
--rh-font-family-body-text
Full CSS Variable Permalink to this token
--rh-font-size-body-text-sm
Full CSS Variable Permalink to this token
--rh-font-size-body-text-xs
Full CSS Variable Permalink to this token
--rh-length-3xs
Full CSS Variable Permalink to this token
--rh-length-md
Full CSS Variable Permalink to this token
--rh-line-height-body-text
Full CSS Variable Permalink to this token
--rh-space-lg
Full CSS Variable Permalink to this token
--rh-space-md
Full CSS Variable Permalink to this token
--rh-space-xs
Full CSS Variable Permalink to this token

rh-chip-group

Chip Group

Slots 3
Slot Name Description

Place individual rh-chips inside rh-chip-group

accessible-label

An accessible label for the chip group. Content for this slot is put into the <legend> element. Also available as an attribute.

clear-all

Customized text for the "Clear all" button

Attributes 2
Attribute DOM Property Description Type Default
size size

Decreases the font-size of the chip's label

'sm' | undefined
unknown
accessible-label accessibleLabel

The accessible label for the form control / rh-chip-group

string | undefined
unknown
Methods 0
None
Events 0
None
CSS Shadow Parts 0
None
CSS Custom Properties 0
None
Design Tokens 18
Token Copy
--rh-border-radius-default
Full CSS Variable Permalink to this token
--rh-border-radius-pill
Full CSS Variable Permalink to this token
--rh-border-width-md
Full CSS Variable Permalink to this token
--rh-border-width-sm
Full CSS Variable Permalink to this token
--rh-color-border-interactive
Full CSS Variable Permalink to this token
--rh-color-border-subtle
Full CSS Variable Permalink to this token
--rh-color-interactive-primary-default
Full CSS Variable Permalink to this token
--rh-color-interactive-primary-hover
Full CSS Variable Permalink to this token
--rh-font-family-body-text
Full CSS Variable Permalink to this token
--rh-font-size-body-text-md
Full CSS Variable Permalink to this token
--rh-font-size-body-text-sm
Full CSS Variable Permalink to this token
--rh-font-size-body-text-xs
Full CSS Variable Permalink to this token
--rh-length-4xs
Full CSS Variable Permalink to this token
--rh-length-md
Full CSS Variable Permalink to this token
--rh-line-height-body-text
Full CSS Variable Permalink to this token
--rh-space-lg
Full CSS Variable Permalink to this token
--rh-space-md
Full CSS Variable Permalink to this token
--rh-space-xs
Full CSS Variable Permalink to this token
© 2021-2025 Red Hat, Inc. Deploys by Netlify