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 badge

Usage

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

PropTypeDefault
variant

Visual style.

"default" | "secondary" | "outline" | "brand" | "success" | "warning" | "destructive" | "info""default"
dot

Prepends a pulsing status dot in the current color.

booleanfalse
asChild

Render as the child element, e.g. a link.

booleanfalse