Badge

Useful for statuses or when you need to attract attention to something.

Example badges

A badge has the following properties:

  • badgeLabel: the text that should be displayed on the badge
  • badgeColor: one of GREY, GREEN, YELLOW, RED, BLUE

For example:

{
  "componentBadge": {
    "badgeLabel": "Subscribed",
    "badgeColor": "GREEN"
  }
}