Components
Badges
Status in a small pill. Six tones, three sizes, with or without a dot. Badges label. They do not act.
Buy nowStatus
<Badge variant="outline"><span className="size-1.5 rounded-full bg-[#2F6E45]" />Active</Badge> <Badge variant="outline"><span className="size-1.5 rounded-full bg-[#E6B400]" />Draft</Badge> <Badge variant="outline"><span className="size-1.5 rounded-full bg-[#A8A49A]" />Archived</Badge> <Badge variant="outline"><span className="size-1.5 rounded-full bg-[#E5484D]" />Failed</Badge>
How to use
A dot reports state. Green is active, yellow is in progress, grey is inactive, and red is failed. The label stays to one or two words. A badge does not act.
Tones
<Badge>New</Badge> <Badge variant="secondary">Beta</Badge> <Badge variant="outline">v1.4</Badge> <Badge variant="destructive">Deprecated</Badge>
How to use
Solid marks something new or important. Secondary and outline are quieter. Destructive marks something that should be removed. Do not invent a new colour for a badge.
With flags
<Badge variant="outline"> <span className="overflow-hidden rounded-full"><US /></span> United States </Badge>
How to use
A flag names a country or locale. It sits in a circle on the left edge of the badge and fills that circle. The country name follows. Do not use a flag without the name.
With avatars
<Badge variant="outline"><img src="/portrait.jpg" alt="" />Ada Chen</Badge> <Badge variant="secondary"><span>AC</span>Assigned</Badge>
How to use
An avatar names a person and sits on the left edge. Use a photo, or initials when there is no photo. A group shows three faces, then the count. Do not show more than three.
Counts
<Badge variant="secondary">12</Badge> <Badge>3 new</Badge>
How to use
A count is a number, not a sentence. Use it on a tab, a filter, or a list. It labels. It is not a button.
Badges exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.
Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.
Tokens
| Token | Value | Use |
|---|---|---|
| --badges-bg | var(--background) | Surface behind the control |
| --badges-fg | var(--foreground) | Label and icon |
| --badges-border | var(--border) | Edge |
| --radius-md | 10px | Default corner |
| --duration-fast | 120ms | Hover and press |
Included
- Six tones
- dot and icon
Memorisely