Badge

Buttons

Animated badge with multiple variants (default, success, warning, error, info), three sizes, optional icon, removable with AnimatePresence, and framer-motion entrance animation.

Loading preview...
Customize
Variant:
Size:
Animated
Removable
Label

Props

PropTypeDefaultDescription
childrenReact.ReactNodeBadge content.
variant'default' | 'success' | 'warning' | 'error' | 'info''default'Color variant of the badge.
size'sm' | 'md' | 'lg''md'Badge size.
animatedbooleantrueEnable entrance/exit animation.
removablebooleanfalseShow a remove (X) button.
onRemove() => voidundefinedCallback when remove button is clicked.
iconReact.ReactNodeundefinedOptional icon displayed before the label.
classNamestring''Additional CSS classes.