← All components

Component

Badge

Compact status or category label in the earthy palette.

Badge.jsx Badge.d.ts Badge.prompt.md Open raw preview HTML

Live demo

Rendered with the actual component source, not a re-implementation.

NewLimitedIn stockLow stockSold outMade to orderOak

Usage

import { Badge } from "./Badge.jsx";

<Badge tone="brand">New</Badge>
<Badge tone="success" dot>In stock</Badge>

Props

Badge props — see the source .d.ts for the complete type.
PropTypeDefaultDescription
tone"neutral" | "brand" | "bark" | "success" | "warning" | "danger" | "info" | "outline""neutral"Colour tone.
dotbooleanfalseShow a leading status dot.