Component

Badges

Badges are small status indicators that can show a count or simply signal new information.

  • Small & large
  • Anchor positioned
  • Trailing placement

Anchored

Give the element the badge belongs to an anchor-name and point the badge at it with position-anchor. The badge is hidden from assistive technology, so the element's accessible name carries its information.

Large badge on an icon button

Small badge on an icon button

On a plain icon

Trailing

A trailing badge needs no anchor: it is laid out in the flow, vertically centered, with a small gap after the label.

Theming

Colour

Size

Position offset