Badge

Small inline labels for status, category, or metadata. Available in four soft palette variants with an optional animated dot indicator.

Label

Installation

npm install @bloomkit/react

Usage

import { Badge } from "@bloomkit/react";
 
<Badge variant="sage">Published</Badge>

With dot

The dot prop adds a gently breathing indicator dot, useful for live status:

<Badge variant="sage" dot>Live</Badge>
<Badge variant="rose" dot>Recording</Badge>

All variants

<Badge variant="sage">Sage</Badge>
<Badge variant="sand">Sand</Badge>
<Badge variant="lavender">Lavender</Badge>
<Badge variant="rose">Rose</Badge>

Props

PropTypeDefaultDescription
variant"sage" | "sand" | "lavender" | "rose""sage"Color palette of the badge
dotbooleanfalseShow an animated breathing dot before the label
classNamestring""Additional Tailwind classes (merged via tailwind-merge)
childrenReactNodeBadge label content