Skip to main content
  1. Docs
  2. Components
  3. Data display

Badge

A short, static status or count: one or two words. The word carries the meaning, the tone reinforces it.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A record's status: Active, Invited, Blocked.
  • A count beside a label: a tab's 642.
  • A plan or a tag: Qeet Pro.
Not for

02

Anatomy

  1. 1badge<span>The pill: the tone's tint, or its bold fill.
  2. 2badge-icon<svg>12px, sharp, decorative.
  3. 3badge-label<span>The word: it truncates with an ellipsis.

03

Do and don't

The word says it
DoA status anyone can read, in any colour scheme.
Don'tColour as the only difference: two tones, one word.
One solid in a view
DoSubtle for the list; solid for the one that must stand out.
Don'tEvery badge solid: nothing stands out.

04

Content

  • One or two words, sentence case: Active, Expires in 9 days.
  • A status as an adjective or a past participle: Active, Blocked, Paid.
  • Pass title with the full text where it may be cut.
Next — BadgeAPI