Brand Guide

Components

Count

A number in a pill: how many of something there are.

Default

One digit is a circle. More digits widen it, and the full number shows.
3471284,210

Tones

12052

Sizes

md is 20px tall and sm is 16px.
5522

With a limit

max caps what is shown, for a place with no room for more digits.
4299+9+

Best practices

  • A count holds a number and nothing else: how many are in a queue, on a tab, waiting for a reply. A label with words in it is a badge.
  • It shows the full number, with thousands grouped. Set max only where there is no room for more digits, and it shows the limit with a plus.
  • neutral by default. muted at zero, so the rows that have work stand out. danger for something waiting on the reader, such as replies not yet read. strong sparingly.
  • Put it next to the thing it counts, and give it an aria-label where the number alone would not make sense read out, such as "2 replies waiting".
  • Use sm on something small, such as a tab or a segment.