Browse components
Waves
Stacked lines flowing like a noise-driven sea; the cursor drags through them and they spring back.
Waves
Installation
npx shadcn@latest add @glint-ui/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/waves.json
Usage
import { Waves } from "@/components/ui/waves";
<div className="relative h-96">
<Waves color="#38bdf8" accentColor="#a78bfa" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#38bdf8" | Color of the top lines. |
| accentColor | string | "#a78bfa" | Color of the bottom lines. |
| gap | number | 14 | Px between lines. |
| amplitude | number | 1 | Wave height multiplier. |
| speed | number | 1 | Flow speed multiplier. |
| lineWidth | number | 1 | Stroke width in px. |
| cursorForce | number | 1 | How far the cursor drags the lines. |
| className | string | — | Extra classes for the root element. |