About
Renders a clickable button or an element styled as a button
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Base Button to your project and fits it to your theme.
Code
How Base Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Button } from '@/components/ui/base-button';
import { Mail, Settings, User, X } from 'lucide-react';
export default function Component() {
return (
<div className="flex items-center gap-4">
<Button variant="primary" mode="icon">
<User />
</Button>
<Button variant="outline" mode="icon">
<Mail />
</Button>
<Button variant="ghost" mode="icon">
<Settings />
</Button>
<Button variant="dim" mode="icon">
<X />
</Button>
</div>
);
}















