Badge

Badges highlight the status of a corresponding object

Stable
Show details
Stable
Published: November 25, 2024
Updated: January 15, 2026

They are commonly used to accompany headings or within tables to communicate status.


Anatomy

Anatomy summary lists and describes all the elements that exist within a component (including other components nested within).

badge-anatomy

Element

Description

Optional?

1. Icon

System Icon used to visually reinforce the information communicated by the label.

Yes

2. Numeric count

Numeric count of associated objects.

Yes

3. Label

Textual label providing the status or metadata about an object.

Yes


Variants

Variants contain different versions of the component depending on specific properties, such as state, size, colour, optional iconography, etc.

Badge
Property Values Default
size Variant xSmall | small | medium medium
type Variant neutral | inverseNeutral | info | success | warning | danger | feature | upsell neutral
hasIcon Boolean true | false true
hasLabel Boolean true | false true
hasCount Boolean true | false true
↳ ✏️ label Text string label
↳ ✏️ count Text string #
icon InstanceSwap icon exclamation-triangle
Badge
Badge
size medium type danger
Badge
Badge
size small type feature
Badge
Badge
size small type info
Badge
Badge
size small type neutral
Badge
Badge
size small type danger
Badge
Badge
size medium type feature
Badge
Badge
size xSmall type feature
Badge
Badge
size medium type info
Badge
Badge
size small type inverseNeutral
Badge
Badge
size xSmall type inverseNeutral
Badge
Badge
size medium type neutral
Badge
Badge
size xSmall type neutral
Badge
Badge
size medium type success
Badge
Badge
size xSmall type success
Badge
Badge
size small type upsell
Badge
Badge
size medium type warning
Badge
Badge
size xSmall type info
Badge
Badge
size medium type inverseNeutral
Badge
Badge
size xSmall type upsell
Badge
Badge
size xSmall type warning
Badge
Badge
size small type success
Badge
Badge
size xSmall type danger
Badge
Badge
size medium type upsell
Badge
Badge
size small type warning

Behaviour

The Badge component can optionally indicate updates when its content changes.

In code, you can enable the statusAnimation prop to trigger an animation whenever the badge’s label or count updates. This animation helps communicate that a change has occurred. It will not trigger on initial load, only when the label or count changes.

When triggered, the badge performs a subtle pulse accompanied by a brief color change, drawing attention to the update while maintaining overall interface consistency.

The following shows what the badge animation looks like when triggered.

Animation showing the badge status animation. As the count changes the badge has a slight pulse and colour change to indicate that a change has occurred

Accessibility considerations

In adherence to our Motion guidelines if a user has prefers-reduced-motion enabled the animation will be disabled.


Component dependencies

This component is internally dependent on the following components:



Help and support