Skip to content

Badge

Badges are used to display status, notification counts, or contextual labels. Commonly used alongside icons or inside buttons to highlight updates or states

Loading Code Block...

To get started, install Butterfly DS via aqua:

Loading Code Block...
Loading Code Block...
sm
md
lg
xl
2xl
Loading Code Block...
success
dot
error
warning
5
counter
Loading Code Block...

PropsDefaultTypeDescription
typedot'dot' | 'success' | 'error' | 'warning' | 'info' |'counter' |'verification'The visual style variant of the badge
sizemd'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'The size of the badge
bgColorClassbg-red-500stringCustom background color class for the badge
value-numberThe numeric value displayed on the counter badge
icon-ReactNodeIcon to display on the badge
ClassName-stringCustom class name for the badge
text-stringText content of the badge
textColorClasstext-white text-xsstringCustom text color class for the badge
icon
icon icon icon icon