Display
Badge
Status chip with dot variant and semantic colour tokens.
Visual Variants
Supports multiple semantic variants and styles like ghost and outline for different levels of emphasis.
PrimarySecondarySuccessDangerWarningGhostOutline
Status Indicators
Use the dot prop for status indicators. Pulse adds an attention-grabbing animation.
System LiveAPI DownMaintenance
Interactive & Removable
Badges can act as filters (interactive) or as dismissible tags (onRemove).
OnlineCritical
AppleMinimalNative
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
variant | BiibaVariant | 'ghost' | 'outline' | 'secondary' | Semantic design theme variant |
size | 'xs' | 'sm' | 'md' | 'sm' | Predefined size scaling preset |
dot | boolean | — | Renders a small status dot before children |
leftIcon | React.ReactNode | — | Icon before the label |
rightIcon | React.ReactNode | — | Icon after the label |
pill | boolean | — | Makes the badge fully rounded (pill) |
pulse | boolean | — | Adds a subtle pulse animation (works best with dot) |
onRemove | () => void | — | Dismiss / close callback — renders an × button |
children | React.ReactNode | — | Main descriptive text or overlay children layout |
onClick | () => void | — | Click event callback handler |
interactive | boolean | — | Render as interactive chip |