Pace UI

Spring Button

Buttons

About

A button that shrinks when pressed and springs back with a bouncy elastic animation on release.

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

Code

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

Usage.tsx

import SpringButton from "@/components/ui/spring-button";

export default function SpringButtonDemo() {
  return (
    <div className="flex h-screen w-full items-center justify-center bg-background">
      <SpringButton className="rounded-md bg-primary px-6 py-3 text-primary-foreground font-medium">
        Press me
      </SpringButton>
    </div>
  );
}

Dependencies

More by Pace UI

View all
  • Dot Loader

    Dot Loader

    960
  • Flip Reveal

    Flip Reveal

    669
  • Dot Flow

    Dot Flow

    267
  • Draw Line Text

    Draw Line Text

    119
  • Liquid Glass

    Liquid Glass

    62
  • Liquid Cursor

    Liquid Cursor

    51
  • Layered Stack

    Layered Stack

    46
  • Calendar Heatmap Chart

    Calendar Heatmap Chart

    10

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113

Explore more

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