Badge

Overview Style Guidelines Code Demos Accessibility
  1. Style
  2. Theme
  3. Configuration
  4. Space and width
  5. Interaction states
  1. Style
  2. Theme
  3. Configuration
  4. Space and width
  5. Interaction states

Style

A badge is number text on a pill background used to reflect the count of something.

Anatomy

Anatomy of a badge with annotations; number 1 is pointing to the container and number 2 is pointing to the counter number
  1. Container
  2. Counter number

Theme

A badge is available in the light theme only.

Light theme badges

Configuration

All badges have the same height and border radius.

How a badge is constructed showing border radius and height details

Space and width

Badge spacing and minimum width
Example Token Description
8 --rh-space-md 8px spacer

Property Current value
Minimum width 32px
2.0rem

Interaction states

A badge contains only text and is not interactive.