Badge is a small status indicator for another element.
Text to display is defined with the value property.
Severity defines the variant of a badge.
Use the size property to customize the size of a Badge, currently large and xlarge are available as size options.
A Badge can be positioned at the top right corner of an element by adding p-overlay-badge style class to the element and embedding the badge inside.
Buttons have built-in support for badges to display a badge inline.
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.
Component does not include any interactive elements.