Skip to content
synccn

Ripple

New

Concentric rings breathing behind a focal point.

Installation

$ pnpm dlx shadcn@latest add @synccn/ripple

First time in this project? Connect synccn with one command.

Usage

import { Ripple } from "@/components/ui/aurora";<div className="relative"><Ripple /></div>

API reference

Generated from the component's TypeScript types, so it always matches the code.

Ripple

Concentric rings pulsing outward from the centre.

  • rings
    number

    Default 6

    Number of rings.

  • size
    number

    Default 120

    Diameter of the smallest ring in pixels.

  • gap
    number

    Default 70

    Pixels added to each ring's diameter.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label, aria-pressed
  • Respects the reduced motion setting
  • Shows a visible focus ring for keyboard users