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";
function CheckIcon() {
return (
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
>
<polyline points="20 6 9 17 4 12" />
</svg>
);
}
function ChevronIcon() {
return (
<svg
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
>
<polyline points="6 9 12 15 18 9" />
</svg>
);
}
export default function ButtonIconLoadingDemo() {
return (
<div className="flex flex-wrap items-center gap-3 p-6">
<Button tone="primary" iconStart={<CheckIcon />}>
Confirm
</Button>
<Button tone="success" iconEnd={<ChevronIcon />}>
More
</Button>
<Button tone="info" isLoading>
Loading
</Button>
<Button shape="circle" tone="primary" aria-label="Confirm">
<CheckIcon />
</Button>
</div>
);
}












