219
A quiet wave that spreads from exactly where you pressed, clipped to the element's corners, finishes filling even on a quick tap, and gives Enter and Space the same feedback from the centre.
akaripple·ink ripple·material ripple
Run this in any project set up for the shadcn CLI. It copies the Press Ripple source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/press-ripple.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Ripple } from "@/components/press-ripple";
export default function Page() {
return <Ripple />;
}A free React motion component in the Surfaces collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Press Ripple source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| strength | number | 0.12 |
| className | string | — |