Badge

NEW

An animated status badge where numbers and strings roll on value change, with live status pulse dot, removable chip actions, and rich tone variants.

Live statusBeta releaseStandard
3

Removable Chips (with exit animations):

Next.jsFramer MotionTailwindEasyUI

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/badge

API Reference

PropTypeDefaultDescription
variant'soft' | 'solid' | 'outline''soft'Visual style of the badge
tone'neutral' | 'success' | 'warning' | 'danger''neutral'Color tone of the badge
dotbooleanfalseDisplays a leading status indicator dot
pulsebooleanfalseAdds a soft animated pulse ring to the status dot
onRemove() => voidundefinedCallback enabling dismissible chip mode with an × icon
childrenReact.ReactNodeundefinedBadge contents (strings & numbers auto-roll on change)