Browse components
Gradient Waves
Stacked gradient waves rolling at different speeds, each casting a soft shadow on the layer behind.
Gradient Waves
Installation
npx shadcn@latest add @glint-ui/gradient-wavesFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/gradient-waves.json
Usage
import { GradientWaves } from "@/components/ui/gradient-waves";
<div className="relative h-96">
<GradientWaves />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#312e81","#5b21b6","#a21caf","#db2777","#f97316"] | One color per wave, back to front (up to six). |
| amplitude | number | 1 | Wave height. |
| speed | number | 1 | Animation speed. |
| shadow | number | 0.6 | Depth shadow between layers. |
| height | number | 0.72 | Position of the back wave (0 bottom, 1 top). |
| className | string | — | Extra classes for the root element. |