Badges are status modifiers to other elements which display the numerical value within an element either next to it or inside the element itself.
Badges have a colorful, bold, and filled style that makes them stand out when appearing within or next to another component. Badges are also small enough to fit next to or within another element.
- Use a badge to highlight the count. Badge can be used in a label as count relating to the metadata.
- Use a label to show metadata. It is usually text content
Badges have a more rounded border radius, similar to labels, to distinguish them from primary buttons.
Badges are also small enough to fit next to or within another element.
You can use different colors in badges.
Stoplight colors are reserved to display a sense of urgency or indicate state.
Use integers within badges. If you’re attempting to use text, consider using a label instead.
If a badge needs to display a number above 99, use “99+” instead of the number unless the number is important to the user’s objectives and you are certain there is room in the design to accommodate it.