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

    916
  • Flip Reveal

    Flip Reveal

    640
  • Dot Flow

    Dot Flow

    258
  • Draw Line Text

    Draw Line Text

    109
  • Liquid Glass

    Liquid Glass

    55
  • Liquid Cursor

    Liquid Cursor

    42
  • Layered Stack

    Layered Stack

    34
  • Reveal Text

    Reveal Text

    8

More in Buttons

View all
  • Button

    Button

    5
  • Texture Button

    Texture Button

    97
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • HeroUI Button Group

    HeroUI Button Group

  • Base Button

    Base Button

    4
  • App Store Button

    App Store Button

    458

Explore more

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