Badge
data-displayCompact inline label for status indicators, counts, categories, and removable tags. Five color variants (default/success/warning/error/info), two sizes (sm/md), optional status dot, and removable mode with close button.
Import
typescript
import { Badge } from "packages/ui/src";Props
BadgeProps
| Prop | Type | Required |
|---|---|---|
children | ReactNode | Yes |
variant | default|success|warning|error|info | No |
size | sm|md | No |
dot | boolean | No |
removable | boolean | No |
onRemove | () => void | No |
Examples
Badge / Tag
Compact label component for status indicators, counts, categories, and tags. 22nd shared component — 18 dedicated tokens.
Interactive Playground
Badge Label
All Variants
defaultsuccesswarningerrorinfo
With Dot Indicator
defaultsuccesswarningerrorinfo
Size Comparison
SmallMedium
Removable Tags
ReactTypeScriptNext.jsTokensARIA
Real-World Use Cases
Pipeline Status
Build PassingTests 123/123Drift 100%
Component Families
feedbacknavigationdata-displayforms
Token Counts
390 tokens22 components24 routes