Badge
A compact label for statuses, counts and metadata, with an optional live dot.
Data Display
DefaultSecondaryOutline Shipped
Playground
Tweak the props, the preview and the code follow.
Operational
Props
<Badge variant="success" dot>Operational</Badge>
Installation
npx @plumsydev/plum-ui add badgeUsage
import { Badge } from "@/components/ui/badge"<Badge variant="success" dot>Operational</Badge>Examples
Status
Tinted semantic variants with a pulsing dot.
OperationalDegradedOutageBeta
Removable labels
Badges pop in and out, and the rest reflow with layout animations.
frontendmotiona11y
Add a label
API Reference
Badge
| Prop | Type | Default |
|---|---|---|
variantVisual style. | "default" | "secondary" | "outline" | "brand" | "success" | "warning" | "destructive" | "info" | "default" |
dotPrepends a pulsing status dot in the current color. | boolean | false |
asChildRender as the child element, e.g. a link. | boolean | false |