Animated Badge

A small status pill for neutral, info, success, warning, danger and loading states. Each state brings its own icon, changing status rolls the icon over, and a soft breathing ring (on by default while loading) draws the eye. Comes in two sizes.

Preview

Animated Badge preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/animated-badge
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

status?
"loading" | "success" | "neutral" | "info" | "warning" | "danger"
neutral
size?
"sm" | "md"
md
icon?
ReactNode
—
showIcon?
boolean
true
pulse?
boolean
status === "loading"
contentKey?
string | number
—
className?
string
—

Updated