About
A button built on React Aria with primary, secondary, tertiary, link and destructive color variants, five sizes, plus loading, disabled and icon-only states, used to trigger a single action like submit, confirm or navigate.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Button to your project and fits it to your theme.
Code
How Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import Button from "@/components/ui/button";
export default function DestructiveButtonsDemo() {
return (
<div className="flex flex-col items-start gap-8 md:flex-row md:items-center">
<Button color="primary-destructive" size="xs">
Button xs
</Button>
<Button color="primary-destructive" size="sm">
Button sm
</Button>
<Button color="primary-destructive" size="md">
Button md
</Button>
<Button color="primary-destructive" size="lg">
Button lg
</Button>
<Button color="primary-destructive" size="xl">
Button xl
</Button>
</div>
);
}















