Browse components
Ripple Grid
Glowing grid lines bent by ripples spreading from the center and from the cursor. WebGL.
Ripple Grid
Installation
npx shadcn@latest add @glint-ui/ripple-gridFirst 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/ripple-grid.json
Usage
import { RippleGrid } from "@/components/ui/ripple-grid";
<div className="relative h-96">
<RippleGrid 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. |