Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Ripple button

An indigo button that sends a ripple out from the exact point you press, from the centre for Enter and Space, with overlapping ripples allowed.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/ripple-button.json

2. Use it

Every prop is optional
app/page.tsx
import RippleButton from "@/components/ripple-button";

export default function Page() {
  return <RippleButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 56px indigo (#4f46e5) button, rounded 12px, white 15px semibold text, with a soft indigo drop shadow on a pale indigo panel.
  2. Pressing spawns a white circle at the press point that grows to cover the whole button while fading from 45% to 0 over 0.65 seconds.
  3. The button darkens on hover and darker again while pressed.

How it behaves

  • Ripples start where the pointer pressed, not at the centre.
  • Enter and Space start a ripple from the centre, once per press.
  • Each ripple removes itself after it finishes, so rapid presses don't pile up.
  • Under reduced motion ripples are near-instant.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component