alexander-rukin

Kit Button

Buttons

About

A multi-purpose button with primary, secondary, tonal, icon and floating-action variants, pointer-driven hover and press feedback, and support for leading/trailing icons.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kit Button to your project and fits it to your theme.

Code

How Kit 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";

const PlusIcon = () => (
  <svg
    width="15"
    height="15"
    viewBox="0 0 16 16"
    fill="none"
    aria-hidden="true"
  >
    <path
      d="M8 3.5 V12.5 M3.5 8 H12.5"
      stroke="currentColor"
      strokeWidth="1.8"
      strokeLinecap="round"
    />
  </svg>
);
const ArrowIcon = () => (
  <svg
    width="15"
    height="15"
    viewBox="0 0 16 16"
    fill="none"
    aria-hidden="true"
  >
    <path
      d="M3.5 8 H12.5 M8.5 4 L12.5 8 L8.5 12"
      stroke="currentColor"
      strokeWidth="1.8"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
  </svg>
);

export default function ButtonWithIconDemo() {
  return (
    <div
      style={{
        display: "flex",
        gap: 16,
        alignItems: "center",
        justifyContent: "center",
        flexWrap: "wrap",
        padding: 32,
      }}
    >
      <Button variant="primary" leftIcon={<PlusIcon />}>
        Add
      </Button>
      <Button variant="secondary" rightIcon={<ArrowIcon />}>
        Next
      </Button>
      <Button variant="secondary" leftIcon={<ArrowIcon />} disabled>
        Disabled
      </Button>
    </div>
  );
}

More by alexander-rukin

View all
  • Carousel

    Carousel

    16
  • Progress

    Progress

    1
  • Filter Chip

    Filter Chip

    1
  • Combobox

    Combobox

  • Textarea

    Textarea

  • Tooltip

    Tooltip

  • Card

    Card

  • Range Slider

    Range Slider

More in Buttons

View all
  • Button

    Button

    37
  • Button

    Button

    20
  • Texture Button

    Texture Button

    113
  • Icon Label Subtext Button

    Icon Label Subtext Button

    68
  • Astryx Chat Send Button

    Astryx Chat Send Button

    5
  • Button

    Button

    16
  • Minimal Button

    Minimal Button

    15
  • Button

    Button

    146