About
A configurable button with multiple variants, color tones, sizes, shapes and styles (solid, gradient, light, outline), plus built-in loading spinner and leading/trailing icon slots.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Qahera Button to your project and fits it to your theme.
Code
How Qahera Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Button from "@/components/ui/button";
export default function ButtonToneStylesDemo() {
return (
<div className="flex flex-col gap-6 p-6">
<div className="flex flex-wrap gap-3">
<Button tone="primary" buttonStyle="gradient">
Primary
</Button>
<Button tone="secondary" buttonStyle="gradient">
Secondary
</Button>
<Button tone="info" buttonStyle="gradient">
Info
</Button>
<Button tone="success" buttonStyle="gradient">
Success
</Button>
<Button tone="danger" buttonStyle="gradient">
Danger
</Button>
<Button tone="warning" buttonStyle="gradient">
Warning
</Button>
</div>
<div className="flex flex-wrap gap-3">
<Button tone="default" buttonStyle="outline">
Default
</Button>
<Button tone="primary" buttonStyle="outline">
Primary
</Button>
<Button tone="secondary" buttonStyle="outline">
Secondary
</Button>
<Button tone="success" buttonStyle="outline">
Success
</Button>
<Button tone="danger" buttonStyle="outline">
Danger
</Button>
<Button tone="warning" buttonStyle="outline">
Warning
</Button>
</div>
<div className="flex flex-wrap gap-3">
<Button tone="primary" buttonStyle="light">
Primary
</Button>
<Button tone="info" buttonStyle="light">
Info
</Button>
<Button tone="success" buttonStyle="light">
Success
</Button>
<Button tone="danger" buttonStyle="light">
Danger
</Button>
<Button tone="warning" buttonStyle="light">
Warning
</Button>
</div>
</div>
);
}















