About
A small status pill for labeling or counting items, with tinted/solid tone colors, a leading status dot, and an animated notification-count shape.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Badge to your project and fits it to your theme.
Code
How Badge is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Badge from "@/components/ui/badge";
export default function BadgeDemo() {
return (
<div className="flex flex-col gap-4">
<div className="flex flex-wrap items-center gap-3">
<Badge tone="success">Delivered</Badge>
<Badge tone="warning">Pending</Badge>
<Badge tone="danger">Failed</Badge>
<Badge tone="tint">Beta</Badge>
<Badge tone="neutral">Draft</Badge>
</div>
<div className="flex flex-wrap items-center gap-3">
<Badge variant="solid" tone="success">
Delivered
</Badge>
<Badge variant="solid" tone="warning">
Pending
</Badge>
<Badge variant="solid" tone="danger">
Failed
</Badge>
<Badge variant="solid" tone="tint">
Beta
</Badge>
<Badge variant="solid" tone="neutral">
Draft
</Badge>
</div>
</div>
);
}








