Badge
stableA small visual indicator for statuses, counts and labels.
Basic usage
DefaultSecondarySuccessWarningDestructive
Examples
Status indicators
Show all five semantic variants to communicate pipeline or task status.
DefaultDraftPublishedPendingFailed
Status variants
Badges cover neutral labels, success, warning, destructive and outline statuses.
DefaultSecondaryOutlineHealthyReviewBlocked
Color prop
The color prop applies semantic tints to both filled and outline shapes.
primarysecondaryerrorwarninginfosuccess
primarysecondaryerrorwarninginfosuccess
Features
- Six variants.
- Supports `asChild`.
Installation
bash
pnpm dlx structyl add badgeAPI Reference
Badge API reference
Full props, types, defaults.