Browse components
Wave Mesh
Glowing grid lines bent by ripples spreading from the center and from the cursor. WebGL.
Wave Mesh
Installation
npx shadcn@latest add @glint-ui/wave-meshFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/wave-mesh.json
Usage
import { WaveMesh } from "@/components/ui/wave-mesh";
<div className="relative h-96">
<WaveMesh color="#8b5cf6" cellSize={40} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#8b5cf6" | Grid line color. |
| speed | number | 1 | Animation speed multiplier. |
| cellSize | number | 40 | Grid cell size in px. |
| amplitude | number | 1 | How far ripples bend the lines. |
| frequency | number | 1 | Ripple ring density. |
| glow | number | 1 | Halo around the lines. |
| mouseStrength | number | 1 | Cursor ripple strength. |
| className | string | — | Extra classes for the root element. |