Skip to main content

Badge

A small status or count label. Pair tone with an icon, never colour alone.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

  • Use it when A small status or count label attached to content.
  • Reach for something else when Interactive filters — use Tag.

Accessibility​

Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.

Install and import​

npx shadcn@latest add @prism/badge
import { Badge } from '@/components/prism/Badge';

In a no-build prototype, read it from the bundle instead: const { Badge } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
tone"neutral" | "accent" | "positive" | "notice" | "negative" | "info"—Default "neutral" — or "accent" when hue is set.
hue"rose" | "orange" | "amber" | "green" | "teal" | "blue" | "violet" | "magenta"—A categorical hue for an accent badge (identity, not status).
variant"subtle" | "solid"—subtle (tinted) or solid (filled).
iconReact.ReactNode—Optional leading icon — recommended for semantic tones.
dotboolean—Show a small leading status dot (Helios-style) in the tone color.
childrenReact.ReactNode—
classNamestring—