Badge & Pill
Minimal status tags. Rounded badge or fully rounded pill, with optional dot. pulse adds an expanding live-status ring.
DefaultSecondaryDraftLiveFailed
import { Badge } from "@/components/ui/badge";export function Status() { return ( <Badge variant="success" shape="pill" dot pulse> Live </Badge> );}<Badge>
dotbooleanLeading status dot in the current text color.
pulsebooleanDot emits an expanding ring forever, like a live status. Needs
dot.shapedefault"badge""badge" | "pill""pill" = fully rounded tag.
variantdefault"default""default" | "secondary" | "outline" | "destructive" | "success"Color and surface.
| Prop | Type | Default |
|---|---|---|
dotLeading status dot in the current text color. | boolean | — |
pulseDot emits an expanding ring forever, like a live status. Needs | boolean | — |
shape"pill" = fully rounded tag. | "badge" | "pill" | "badge" |
variantColor and surface. | "default" | "secondary" | "outline" | "destructive" | "success" | "default" |
Also accepts every <span> prop.
* required. Every component also takes className.