Harmonica Design System
Components

Badge

Token-driven pill badge / chip with semantic tones.

neutralprimarysuccesserrorwarninginfoneutralprimarysuccesserrorwarninginfo

Tones

neutral (default), primary, success, error, warning, info. Each maps to the matching semantic color tokens, with an outline variant.

Usage

import { Badge } from '@cdz/ui';

<Badge>Draft</Badge>
<Badge tone="success">Active</Badge>
<Badge tone="error" outline>Failed</Badge>

Props

PropTypeDefaultNotes
toneneutral | primary | success | error | warning | infoneutralColor tone
outlinebooleanfalseTransparent background, colored border

All other native <span> attributes pass through; the component forwards its ref.

On this page