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

Radius

Badge supports three different radii.

Result
Loading...
Live Editor

Sizes

The badge can be rendered at four different sizes.

Primary and dark badges will have a solid background at all four sizes, but all others will be solid at "xs" and light with a border for all other 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

Props