Badge Group
A pill-style badge group that pairs a labeled addon with a short message, available in light and modern themes with leading or trailing alignment.
Source code
Click to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.
Installation
Usage
Colors
The color prop controls the palette of the badge addon and icon. Applies to the light theme only — the modern theme uses system-aware tokens.
All colors
Semantic aliases
Sizes
Two sizes are available: md and lg.
Alignment
Leading
The addon pill appears before the main text with the icon at the trailing end.
Trailing
The main text comes first, followed by the addon pill with the icon inside.
Theme
Modern — leading
The modern theme uses system-aware background and border tokens with a color dot indicator inside the addon.
Modern — trailing
No icon
Set :icon="false" to hide the trailing icon entirely.