Badge

Badge is a small status indicator for another element.

Content of the badge is specified using the value property.

2

Content of the badge is specified using the value property.

2
basic-demo

Severity defines the color of the badge, possible values are success, info, warn and danger

2684935
severity-demo

Badge sizes are adjusted with the badgeSize property that accepts small, large and xlarge as the possible alternatives to the default size. Currently sizes only apply to component mode.

8642
size-demo

A badge can be added to any element by encapsulating the content with the OverlayBadge component.

2
4
overlay-demo

Buttons have built-in support for badges to display a badge inline.

button-demo

Screen Reader

Badge does not include any roles and attributes by default, any attribute is passed to the root element so aria roles and attributes can be added if required. If the badges are dynamic, aria-live may be utilized as well. In case badges need to be tabbable, tabIndex can be added to implement custom key handlers.

Keyboard Support

Component does not include any interactive elements.

ON THIS PAGE
Figma UI Kit
The official Figma UI Kit for Prime UI libraries, the essential resource for designing with PrimeOne components.
Learn More