Elliot Sutton

Button

Buttons

About

An animated button with multiple style and size variants that scales on hover and tap.

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

import {
  Button,
  type ButtonProps,
} from "@/components/ui/components-buttons-button";
import { PlusIcon } from "lucide-react";

interface ButtonDemoProps {
  variant?: ButtonProps["variant"];
  size?: ButtonProps["size"];
}

export default function ButtonDemo({ variant, size }: ButtonDemoProps) {
  return (
    <Button variant={variant} size={size}>
      {size === "icon" ? <PlusIcon /> : "Click me"}
    </Button>
  );
}

Dependencies

More by Elliot Sutton

View all
  • Notification List

    Notification List

    229
  • Scroll Progress

    Scroll Progress

    147
  • Glyph Background

    Glyph Background

    144
  • Cursor

    Cursor

    140
  • Pin List

    Pin List

    114
  • Bubble Background

    Bubble Background

    107
  • Topography Background

    Topography Background

    104
  • Radix Dropdown Menu

    Radix Dropdown Menu

    103

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1

Explore more

Part of Animate UI — browse the full library on 21st.dev.