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 { Badge } from '@/components/ui/base-badge';
export default function BadgeDemo() {
return (
<div className="flex flex-col items-center justify-center gap-6">
<div className="flex items-center gap-4">
<Badge variant="primary" size="xs">
Xsmall
</Badge>
<Badge variant="primary" size="sm">
Small
</Badge>
<Badge variant="primary">Medium</Badge>
<Badge variant="primary" size="lg">
Large
</Badge>
</div>
<div className="flex items-center gap-4">
<Badge variant="primary" shape="circle" size="xs">
5
</Badge>
<Badge variant="primary" shape="circle" size="sm">
5
</Badge>
<Badge variant="primary" shape="circle">
5
</Badge>
<Badge variant="primary" shape="circle" size="lg">
5
</Badge>
</div>
</div>
);
}








