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.
- Text
- Decorative icon
- Linked text
There are three available tag styles: Filled
, Outlined
, and Desaturated
.
There are nine available tag colors. The Desaturated style uses only one color for both the border and text.
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 |
Each tag style, color, and size includes an optional decorative icon.
Browse the UI Icons to see more options
Each tag style, color, and size can be text only or linked.
Each tag style, color, and size is available in both light and dark themes.
Tags have 8px of space in between each other in a row or when stacked.
Only tags with linked text have interaction states.
The tag border width increases to --rh-border-width-md
on hover.
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.