Mark Yo

Animated Button

Buttons

About

A button with primary, secondary, ghost and outline styles in four sizes, a spring press dip, a slight hover grow, and an optional Material-style ripple from the press point.

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

Code

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

Usage.tsx

import Button, { ButtonLink } from "@/components/ui/button-base";

export default function ButtonBaseDemo() {
  return (
    <div className="flex min-h-[320px] w-full flex-col items-center justify-center gap-6 bg-background p-10">
      <div className="flex flex-wrap items-center justify-center gap-4">
        <Button variant="primary">Primary</Button>
        <Button variant="secondary">Secondary</Button>
        <Button variant="ghost">Ghost</Button>
        <Button variant="outline">Outline</Button>
      </div>
      <div className="flex flex-wrap items-center justify-center gap-4">
        <Button size="sm">Small</Button>
        <Button size="md">Medium</Button>
        <Button size="lg">Large</Button>
        <Button size="icon" aria-label="icon action">
          +
        </Button>
      </div>
      <div className="flex flex-wrap items-center justify-center gap-4">
        <Button ripple>Ripple on press</Button>
        <ButtonLink href="#" variant="outline">
          Link styled as button
        </ButtonLink>
      </div>
    </div>
  );
}

Dependencies

More by Mark Yo

View all
  • Loader

    Loader

    72
  • Pricing Table

    Pricing Table

    33
  • Bento Grid

    Bento Grid

    22
  • Approval Queue

    Approval Queue

    20
  • Expandable Tabs

    Expandable Tabs

    19
  • Image Gallery

    Image Gallery

    17
  • Wallet Card

    Wallet Card

    15
  • Feature Section

    Feature Section

    12

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19