Badge

A static, inline label for a status, count, or short piece of metadata.

Stablev0.3.0@garn/ui/badge

Default

Tone + appearance defaults.

ActivePaidFailedDraft

Tone × appearance

Every tone rendered against every appearance. Hover a cell for the data attributes it emits; click the copy icon for that combination's JSX.

solidsoftoutlinesubtleframed
neutral
Badge
Badge
Badge
Badge
Badge
brand
Badge
Badge
Badge
Badge
Badge
info
Badge
Badge
Badge
Badge
Badge
success
Badge
Badge
Badge
Badge
Badge
warning
Badge
Badge
Badge
Badge
Badge
danger
Badge
Badge
Badge
Badge
Badge

Sizes

xs · sm · md · lg — scales font, padding, and slot icons together.

xssmmdlg

Shapes

sharp · rounded · pill.

sharpsoftframedsolid
roundedsoftframedsolid
pillsoftframedsolid

Status

Dot, pulse, loading, and progress affordances.

OnlineLiveApplying…Queued2/5Done

Count

A trailing count, rendered by Counter (caps at 99+).

Errors12Comments3

Icons

Leading/trailing icons; an icon-only badge needs an aria-label.

VerifiedDocsNew

Custom Color

A custom color with automatic foreground contrast.

design-systemhighlightshippedshipping

Truncation

Only the label ellipsizes; the full text stays in the title.

enterprise-customer-success-priority

Compound

Explicit Badge.Leading / .Label / .Trailing for full control.

AKArjun K.

As Child

Renders as a link via asChild, keeping the badge styling.

Plan Badge

Badge.Separator (dot / line) divides inline segments — a status·action pill and a metadata divider. The action is a composed link; Badge stays non-interactive.

Free planUpgradeProSeats: 12