Badge

v1.5

A badge is a visual indicator that notifies users of numeric values.

  • Skin
  • Marko
  • React

Considerations

Noticeable

Badges stand out from the surrounding UI to highlight important information.

Minimal

Badges are just loud enough—easily noticed but not distracting.

Global

A badge tracks notifications globally across the experience.

Anatomy

Properties

Behavior

Badges can appear in the top-right of icon buttons or inline next to text.

Screen sizes

Badges remain the same size and layout across platforms and screen sizes.

Best practices

Specs

Specs for badge sizes and spacing. The top left contains a group of 3 badges that are all 24px tall. The first badge is a single-digit label of “9” and is 24px wide. The second badge is a double-digit label of “99” and is 24px wide. The third badge is a triple digit max label of “99+” and is 40px wide. The top right example contains the text “notifications” with 6px of space followed by a single-digit badge with the label of “9”. The bottom example contains 3 icon buttons with badges and 1 standalone icon with a badge. The first icon button is 48px and the badge is positioned 30px from the left and 30px from the bottom. The second icon button is 40px and the badge is positioned 24px from the left and 24px from the bottom. The third icon button is 32px and the badge is positioned 18px from the left and 18px from the bottom. The standalone icon is 24px and the badge  is positioned 12px from the left and 12px from the bottom.