Tag
On this page
Style
A tag is text on a pill-shaped background. It comes in a variety of colors, styles, and sizes. The text may be linked or include an optional decorative icon.
Anatomy
Variants
Style
There are three available tag styles: Filled
, Outlined
, and Desaturated
.
Color
There are nine available tag colors. The Desaturated style uses only one color for both the border and text.
Size
There are two available tag sizes. Each style and color has Default
and
Compact
sizes.
Tag size | Text size token |
---|---|
Default | --rh-font-size-body-text-sm |
Compact | --rh-font-size-body-text-xs |
Decorative icon
Each tag style, color, and size includes an optional decorative icon.
Helpful tip
Browse the UI Icons to see more options
Interactivity
Each tag style, color, and size can be text only or linked.
Theme
Each tag style, color, and size is available in both light and dark themes.
Light theme
Dark theme
Space
Tags have 8px of space in between each other in a row or when stacked.
Example
Token
Description
xs
4px spacer
md
8px spacer
Interaction states
Only tags with linked text have interaction states.
Hover
The tag border changes to --rh-border-width-md
or 2px
on hover.
Focus and Active
A focus ring wraps text or the icon and text in both focus and active states. The border also changes as seen in the hover state.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.