miladjoodi

Button

Buttons

About

A clickable button for triggering actions, with filled, outline, secondary, ghost, destructive and link variants, multiple sizes, icon support and an as-link render mode.

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";
import { ArrowUpRightIcon } from "lucide-react";

export default function ButtonSize() {
  return (
    <div
      dir="rtl"
      className="flex flex-col flex-wrap items-center justify-center gap-6 sm:flex-row sm:gap-8"
    >
      <div className="flex items-start gap-2">
        <Button size="xs" variant="outline">
          خیلی کوچک
        </Button>
        <Button size="icon-xs" aria-label="ارسال" variant="outline">
          <ArrowUpRightIcon />
        </Button>
      </div>
      <div className="flex items-start gap-2">
        <Button size="sm" variant="outline">
          کوچک
        </Button>
        <Button size="icon-sm" aria-label="ارسال" variant="outline">
          <ArrowUpRightIcon />
        </Button>
      </div>
      <div className="flex items-start gap-2">
        <Button variant="outline">معمولی</Button>
        <Button size="icon" aria-label="ارسال" variant="outline">
          <ArrowUpRightIcon />
        </Button>
      </div>
      <div className="flex items-start gap-2">
        <Button variant="outline" size="lg">
          بزرگ
        </Button>
        <Button size="icon-lg" aria-label="ارسال" variant="outline">
          <ArrowUpRightIcon />
        </Button>
      </div>
    </div>
  );
}

Dependencies

More by miladjoodi

View all
  • Image Diff Slider

    Image Diff Slider

    36
  • Empty State

    Empty State

  • Avatar

    Avatar

  • Phone Input

    Phone Input

  • Item

    Item

  • Signature Pad

    Signature Pad

  • Hover Card

    Hover Card

  • File Upload

    File Upload

More in Buttons

View all
  • Hero Button

    Hero Button

    21
  • Button

    Button

    141
  • Eclipse Button

    Eclipse Button

    9
  • Button

    Button

    19
  • Texture Button

    Texture Button

    110
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    64
  • HeroUI Toggle Button

    HeroUI Toggle Button

  • Icon Label Subtext Button

    Icon Label Subtext Button

    65