Components / Backgrounds
Ripple Rings
Sonar-style rings pulsing out from the center. Great behind a status or call to action.
📡
Searching for devices…
Installation
Requires React 18+ and Tailwind CSS.
- 1
Install dependencies
$ npm install motion - 2
Add the component
Copy the code from the Code tab above into
components/ui/ripple-rings.tsx. - 3
Use it
example.tsximport { RippleRings } from "@/components/ui/ripple-rings"; export default function RippleRingsDemo() { return ( <RippleRings className="h-72 w-full rounded-2xl border border-zinc-200 bg-white dark:border-white/10 dark:bg-zinc-950"> <div className="text-center"> <span className="mx-auto grid size-14 place-items-center rounded-full bg-zinc-900 text-2xl text-white shadow-lg dark:bg-white dark:text-zinc-900"> 📡 </span> <p className="mt-3 text-sm font-medium text-zinc-700 dark:text-zinc-300">Searching for devices…</p> </div> </RippleRings> ); }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| rings | number | 5 | Rings in flight at once. |
| duration | number | 4 | Seconds for one ring to expand. |
| children | ReactNode | — | Content in the center. |