ComponentsDisplay

OverlayBadge

A badge on the corner of an icon, a button or an avatar.

Features8APIThemingAccessibility

Basic

Wrap any content. ariaLabel tells screen readers what the number means; it is read together with the button.

4New

Max

max turns big numbers into 99+.

899+999+

Dot

Without a value the badge is a dot — "something new".

Severities

Every badge severity; danger by default.

33333333

Sizes

small, medium, large and xlarge — pick one that fits the content.

2222

Avatar

shape="circle" moves the badge to the edge of a round picture — a status dot or a count.

OKTS5

Zero

A zero hides the badge; showZero keeps it, hidden hides it on purpose.

0

Design tokens

[dt] changes the overlayBadge tokens — here a thicker ring and an offset.

9