Ripple preview

Ripple

Concentric rings that breathe outward from the center.

  • Group
    Patterns
  • Origin
    Adapted · Magic UI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/ripple

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { Ripple } from "@/registry/components/ripple/ripple";

<Ripple />

Props

PropTypeDefaultDescription
mainCircleSize?number210Diameter of the innermost ring in px.
mainCircleOpacity?number0.24Opacity of the innermost ring; each ring after it is a little fainter.
numCircles?number8How many rings.

Also accepts every prop of ComponentPropsWithoutRef<"div">.

When to use

Calling attention to a central element (a CTA, an avatar, a live indicator).

When not to use

Several ripples per screen.

Related

Aurora background · Meteors · Liquid orb