动效徽标

状态徽标,图标随状态变化播放动画,带脉冲反馈,并提供紧凑尺寸变体。

Syncing
QueuedLiveIndexingVerifiedPendingBlocked

安装

用 shadcn CLI 添加,或手动复制源码。

$ bunx --bun shadcn add @uilab/animated-badge

API 参考

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

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.