‹ components

Badge

stablev1.0.0·open in canvas

Small status label on the tinted-surface pairs — tone conveys state category, never price direction on its own.

Installnpx shadcn add @cids/badge
Live demo
neutralnewon pegdepeggedpendingbridged

Motion · tap to replay

honors reduced-motion

None (static label).

This component declares no motion.

Brand chip remounts on tap · highlighted tokens are named in this component's doc · spring is budgeted to human feedback only.

import { Badge } from "@/design-system";

<Badge tone="buy">on peg</Badge>
<Badge tone="warning">pending</Badge>

Tokens · live

Resolves in the active theme — flip the toggle above to verify.

States · live

Forced instances — hover/focus still work on the live demo above.

neutral

pending

brand

live

buy

on peg

sell

error

warning

drift

info

note

Small status label on the tinted-surface pairs — tone conveys state category, never price direction on its own.

Anatomy

( label )  ← rounded-chip, 11px medium, tint bg + tone text

Props

PropTypeDefaultNotes
tone"neutral" "brand" \"buy" \"sell" \"warning" \"info"`"neutral"Maps to the tinted state-surface pairs.
classNamestring—cn-merged.
…restHTMLAttributes<span>—Pass-through.

Motion

None (static label).

A11y

Self-contained: copy the folder into any Tailwind+React app, or use the install command above. Docs and this page render the same file on disk — they cannot drift.