Edu Calvo

Smooth Button

Buttons 17

About

A polished button component with gradient candy/destructive variants, sizes, and a subtle press-scale animation.

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

Code

How Smooth Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import SmoothButton from "@/components/ui/smooth-button";
import { ExternalLink, Heart, Trash2 } from "lucide-react";

export default function SmoothButtonDemo() {
  return (
    <div className="flex flex-col items-center gap-6">
      <div className="flex flex-wrap items-center justify-center gap-3">
        <SmoothButton variant="default">Default</SmoothButton>
        <SmoothButton variant="candy">
          Candy <ExternalLink className="h-4 w-4" />
        </SmoothButton>
        <SmoothButton variant="destructive">
          <Trash2 className="h-4 w-4" /> Delete
        </SmoothButton>
        <SmoothButton variant="outline">Outline</SmoothButton>
        <SmoothButton variant="secondary">Secondary</SmoothButton>
        <SmoothButton variant="ghost">Ghost</SmoothButton>
        <SmoothButton variant="link">Link</SmoothButton>
      </div>
      <div className="flex flex-wrap items-center justify-center gap-3">
        <SmoothButton size="sm" variant="candy">
          Small
        </SmoothButton>
        <SmoothButton size="default" variant="candy">
          Default
        </SmoothButton>
        <SmoothButton size="lg" variant="candy">
          Large
        </SmoothButton>
        <SmoothButton size="icon" variant="candy">
          <Heart className="h-4 w-4" />
        </SmoothButton>
      </div>
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    235
  • AI Task List

    AI Task List

    160
  • Siri Orb

    Siri Orb

    160
  • Cursor Follow

    Cursor Follow

    154
  • Pixel Flow Field

    Pixel Flow Field

    142
  • Agent Avatar

    Agent Avatar

    130
  • Gravity Stars

    Gravity Stars

    112
  • Coverflow Carousel

    Coverflow Carousel

    95

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • App Store Button

    App Store Button

    454
  • Notification Button

    Notification Button

    103