Ripple

Motion

Ripple is a React background of concentric rings that pulse outward from the center or any point, staggered and fading, with an extra ripple sent from each click or tap.

src/registry/premium/ripple.tsx/r/ripple.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/ripple.json

Usage#

tsx
import { Ripple } from "@/components/ui/ripple"

export function Example() {
  return <Ripple />
}

API reference#

Ripple props
PropTypeDefault
countnumber7
spacingnumber44
sizenumber128
origin{ x: number; y: number }{ x: 50, y: 50 }
durationnumber4
interactivebooleantrue
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components