alwkala

Qahera Button

Buttons

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>
  );
}

More by alwkala

View all
  • Callout

    Callout

    10
  • Progress Bar

    Progress Bar

    4
  • Breadcrumb

    Breadcrumb

    2
  • Navbar

    Navbar

    1
  • Kbd

    Kbd

  • Pagination

    Pagination

  • Back To Top

    Back To Top

  • Checkbox

    Checkbox

More in Buttons

View all
  • Texture Button

    Texture Button

    115
  • Button

    Button

    157
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    67
  • Icon Label Subtext Button

    Icon Label Subtext Button

    71
  • Icon Button

    Icon Button

    8
  • Button

    Button

    2
  • Hero Button

    Hero Button

    25
  • Button

    Button

    54