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

Behaviour

Text
Read as its words; the tone adds nothing a screen reader needs.
Contrast
Every tone and variant meets AA, in light and dark.
Icon
Decorative: aria-hidden.
Forced colours
A border keeps the pill's edge.

02

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Numbers and dates in English and Hindi, grouped for India
  • Forced colours and right to left
Next — BadgeChangelog