nori-ui

Badge

Compact pill for status, counts, or labels.

2.5 kBgzipped

At a glance

  • Use sparingly. Every badge draws the eye, so a row of five stops being a row of badges.
  • Pair with Button.leadingIcon / Avatar for status overlays.

Preview

tone

Semantic color. Choose by the meaning of the label, not the color you want — the theme decides the actual hue.

ValueUse for
neutral (default)Counts, plain category labels
primaryBrand-relevant labels, "New", "Pro"
successHealthy / done states
warningPending / needs-attention states
dangerErrors, expired, blocked
<Badge tone="success">Active</Badge>
<Badge tone="danger">Expired</Badge>

appearance

Visual weight of the same tone. Pick by how loud the badge needs to be in its row.

ValueLook
soft (default)Tinted background, tone-colored text. Calm, readable.
solidFilled tone background, white text. Loud — used sparingly.
outlineBorder in tone, transparent background, tone-colored text.
<Badge tone="primary" appearance="solid">PRO</Badge>
<Badge tone="warning" appearance="outline">Beta</Badge>

Props

PropTypeDefaultDescription
appearanceenumsoftVisual treatment. - `soft` (default) — tinted background with darker tone-colored text. Modern, calm. - `solid` — filled tone background, white text. Loud, used sparingly. - `outline` — border in tone, transparent background, tone-colored text. @defaultValue 'soft'
classNamestring
testIDstring
toneenumneutralSemantic color of the badge. @defaultValue 'neutral'

On this page

Preview theme