Skip to main content

Badge

Badges are used to highlight an item's status for quick recognition. They can be used to show unread counts, notifications, and other status indicators. They can also be used as removable tags.

Result
Loading...
Live Editor

Variants

Outline

Result
Loading...
Live Editor

Bold

Result
Loading...
Live Editor

Sizes

Result
Loading...
Live Editor

As a notification on an element

The xs size should be used when adding notification style badges on elements.

Result
Loading...
Live Editor

The dot type can be used to apply a generic notification to any element.

Result
Loading...
Live Editor

Removable

Passing an onRemove prop to the Badge will render a delete icon and make it interactive.

Result
Loading...
Live Editor

As an interactive element

It is possible to create interactive badges. Specifically badges that behave like buttons by passing button to the as prop.

Result
Loading...
Live Editor

Icons

Use renderPrefix and renderSuffix to add icons to Badges.

Result
Loading...
Live Editor

Props