Skip to content

Badge

Badges are compact visual indicators used to display status, notification counts, or contextual labels. They are commonly placed on icons, avatars, or buttons.

Loading Code Block...

A simple medium dot badge — useful as an unread or status indicator.

Loading Code Block...

Badges support sm, md, lg, xl, and 2xl.

sm
md
lg
xl
2xl
Loading Code Block...

Set type to change the visual style: dot, success, error, warning, counter, or verification.

success
dot
error
warning
5
counter
verification
Loading Code Block...

The counter type shows a number. Values above 99 render as 99+.

5
5
99
99
99+
150
Loading Code Block...

Override colours with bgColor and textColor. They apply most clearly to dot and counter types.

7
Loading Code Block...

PropsDefaultTypeDescription
type'dot''dot' | 'success' | 'error' | 'warning' | 'counter' | 'verification'Visual variant of the badge.
size'sm''sm' | 'md' | 'lg' | 'xl' | '2xl'Size of the badge.
value-numberNumeric value for `counter`. Values above 99 display as `99+`.
bgColor-stringBackground colour for `dot` / `counter` types. Accepts a CSS colour value (e.g. `#a855f7`) in both frameworks; React additionally accepts a Tailwind class string (e.g. `bg-purple-500`).
textColor-stringText/icon colour for `dot` / `counter` types. Accepts a CSS colour value in both frameworks; React additionally accepts a Tailwind class string (e.g. `text-white`).