Wavy Background

Motion

A React canvas background of layered sine waves rolling behind your content, with colour, speed, amplitude and blur props, sharp on retina and paused off screen.

src/registry/premium/wavy-background.tsx/r/wavy-background.json

Installation#

bash
npx shadcn@latest add @minidev/wavy-background

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/wavy-background.json

Usage#

tsx
import { WavyBackground } from "@/components/ui/wavy-background"

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

API reference#

WavyBackground props
PropTypeDefault
colorsstring[]["var(--chart-2)", "var(--info)", "va...
speednumber1
amplitudenumber26
blurnumber8
coveragenumber0.46
opacitynumber0.46
classNamestring-
childrenReact.ReactNode-

Dependencies#

npm

lucide-reactmotion

Built from

All Animated React components