Badge & Tag
Status labels and removable chips.
Add the source to a shadcn project
npx shadcn@latest add https://docs.atomus.io/r/badge.json https://docs.atomus.io/r/tag.jsonOpen Badge in v0Open Tag in v0Installs the component source, its CSS and the Atomus tokens into components/atomus/. How the registry works
In Figma
Section titled “In Figma”From guidelines/components/badge.md · Open in Figma: Badge · Tag
Properties, variants and anatomy of the Figma components. React props use the same names.
Status label. Light for tables and lists, Solid for emphasis. Optional dot, icon or close.
Variants: 30
| Property | Type / options |
|---|---|
| Label | text |
| Dot | boolean (off) |
| Leading icon | boolean (off) |
| Leading icon swap | instance swap (icon) |
| Close | boolean (off) |
| Size | sm · md · lg |
| Style | Light · Solid |
| Color | Gray · Brand · Error · Warning · Success |
Removable filter / selection chip.
Variants: 3
| Property | Type / options |
|---|---|
| Label | text |
| Leading icon | boolean (off) |
| Leading icon swap | instance swap (icon) |
| Close | boolean (on) |
| Size | sm · md · lg |
import { Badge, Tag } from '@stanvision/atomus-react';
<Badge color="success" dot>Active</Badge><Badge color="brand" variant="solid">New</Badge><Tag onRemove={() => remove(id)}>Figma</Tag>Labels a status or count next to content.
children— one or two words (Figma: Label).color—gray·brand·error·warning·success;variant—light(tinted) orsolid(Figma: Style).size—sm20 ·md24 ·lg28;dot,icon,onClose(Figma: Dot, Leading icon, Close).- Always keep the word: colour alone never carries the status.
Don’t
- Don’t use solid warning with small text — white on amber is 2.2:1. Prefer the light warning badge.
- Don’t use badges as buttons; for removable values use Tag.
A compact, removable chip for filters, keywords and selected values (Tags input, Multi-select).
children(Figma: Label),sizesm24 ·md28 ·lg32, optionalicon.onRemoveshows the × button (Figma: Close); its label reads “Remove <value>”.
Don’t
- Don’t use tags for status — use Badge.
Design guidance
Section titled “Design guidance”From the Figma guidelines.
Do
- Pick the colour by meaning: Success, Warning, Error, Brand (info), Gray (neutral).
- Keep labels to one or two words.
- Use Tag, not Badge, for values the user can remove.
Forbidden
- Never use a badge as a button or link.
- Never rely on colour alone — the word carries the meaning.
- Never place more than three badges together.
Do
- Use for user-entered or filterable values: filters, skills, recipients.
- Give removable tags a close button (
onRemovein code).
Forbidden
- Never use Tag for status — use Badge.
- Never colour tags by status.
React API
Section titled “React API”Generated from react/src/components by scripts/gen-react-api.mjs — the same tables agents read in guidelines/components/badge.md.
Use only these props; anything else is not part of the API.
import { Badge } from '@stanvision/atomus-react'; — source: react/src/components/Badge.tsx
| Prop | Type | Default | Description |
|---|---|---|---|
children |
ReactNode |
required | Figma: Label |
color |
'gray' | 'brand' | 'error' | 'warning' | 'success' |
'gray' |
Figma: Color |
variant |
'light' | 'solid' |
'light' |
Figma: Style — light (tinted) or solid |
size |
'sm' | 'md' | 'lg' |
'md' |
Figma: Size — sm 20 · md 24 · lg 28 |
dot |
boolean |
— | Figma: Dot |
icon |
ReactNode |
— | Figma: Leading icon + Leading icon swap |
onClose |
() => void |
— | Figma: Close — shows a remove button |
Also accepts every native <span> attribute (id, title …).
import { Tag } from '@stanvision/atomus-react'; — source: react/src/components/Tag.tsx
| Prop | Type | Default | Description |
|---|---|---|---|
children |
ReactNode |
required | Figma: Label |
size |
'sm' | 'md' | 'lg' |
'md' |
Figma: Size — sm 24 · md 28 · lg 32 |
icon |
ReactNode |
— | Figma: Leading icon + Leading icon swap |
onRemove |
() => void |
— | Figma: Close — shows the × button |
Also accepts every native <span> attribute (id, title …).