Badge
The Badge component is used to display status, counts, or categorical information in a compact format.Installation
Usage
Basic Badge
Button Badge
Link Badge
Counter Badges
Props
Badge
Underlying HTML element to render. Can be “span”, “button”, or “a”.
Sets the visual style of the badge. Available variants:
neutralwarningerrorsuccessnewsubaccountdecorative10,decorative20,decorative30,decorative40brand10,brand20,brand30neutral_counter,error_counter,notification_counterdefaultinfo(deprecated)
Sets the size of the badge.
Overrides the default element name to apply unique styles with the Customization Provider.
Click handler (required when
as="button").Link URL (required when
as="a").Variants
Status Badges
- neutral: Neutral or informational status
- success: Successful or positive status
- warning: Warning or attention needed
- error: Error or critical status
- new: New feature or item
Counter Badges
- neutral_counter: Neutral count with error icon
- error_counter: Error count with error icon
- notification_counter: Notification count
Decorative Badges
- decorative10, decorative20, decorative30, decorative40: Color variants for categorization
Brand Badges
- brand10, brand20, brand30: Brand color variants