Components / component

Press Spring Button

v1.0.0 · premium

A chunky pill that sinks into its shadow when pressed, springs back with an overshoot, and sends a ripple from the press point.

Press Spring Button demo

Implementation

A chunky pill that sinks into its shadow when pressed, springs back with an overshoot, and sends a ripple from the press point.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function PressSpringButton({ children, href, onClick, type = 'button', size = 'md', disabled = false, ink, paper,
  children: string;
  href?: string;

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A chunky pill that sinks into its shadow when pressed, springs back with an overshoot, and sends a ripple from the press point.

Frequently asked questions

Can the ripple pile up?

At most four ripples exist at once, and each removes itself when it finishes.

Does it shift the layout when pressed?

No. The button reserves the height of its lip as bottom margin, so pressing only moves the button into the lip.