Badge

Badges often used to highlight an item's status to notify the user.

Basic

Badge content prop accept both string & number type.

Count Overflow

Badge will display the maxCount prop number, if the content number is larger than the maxCount prop number.

Dot

Badge will display as dot if without content prop.

Inline

Display Badge inline by leaving children empty.

Color

Badge can have different color by setting color value via backgroundColor & textColor.

API

Badge
PropDescriptionTypeDefault
contentContent to show in badgestring | number-
maxCountMax number to shownumber99
innerClassClass for badge innerstring-
badgeStyleCustom styling for Badgeobject-