About
A customizable badge component built with Base UI and useRender hook for composition.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Base Badge to your project and fits it to your theme.
Code
How Base Badge is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Link from 'next/link';
import { Badge, BadgeDot } from '@/components/ui/base-badge';
export default function BadgeDemo() {
return (
<div className="flex items-center gap-4">
{/* Using asChild prop */}
<Badge asChild appearance="light" shape="circle">
<Link href="#">
<BadgeDot className="bg-primary" />
asChild
</Link>
</Badge>
{/* Using render prop */}
<Badge render={<Link href="#" />} appearance="light" shape="circle">
<BadgeDot className="bg-primary" />
Pender prop
</Badge>
</div>
);
}








