Loading preview
Aurora Background
BackgroundsSoft, blurred color fields that drift slowly behind content.
Concentric rings that gently pulse from the center, e.g. behind an icon.
npx shadcn@latest add @venusui/ripple-backgroundRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/ripple-background.tsxThe code behind the preview above.
ripple-background-demo.tsx
import { Radio } from "lucide-react"
import { RippleBackground } from "@/components/ui/ripple-background"
export default function RippleBackgroundDemo() {
return (
<div className="relative flex h-72 w-full max-w-lg items-center justify-center overflow-hidden rounded-xl border bg-background">
<RippleBackground />
<span className="relative inline-flex size-14 items-center justify-center rounded-full border bg-card">
<Radio className="size-6" aria-hidden="true" />
</span>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| rings | number | 6 | Number of rings. |
| size | number | 160 | Diameter of the innermost ring, in pixels. |
| step | number | 90 | Extra diameter per ring, in pixels. |
All <div> props, including className.
ripple-ring keyframes and --animate-ripple-ring to your CSS. Works in Server Components.relative.aria-hidden.relative) whose center you want.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Soft, blurred color fields that drift slowly behind content.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.