Skip to content

    Browse components

    Wave Mesh

    Glowing grid lines bent by ripples spreading from the center and from the cursor. WebGL.

    Wave Mesh

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/wave-mesh

    First 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

    PropTypeDefaultDescription
    colorstring"#8b5cf6"Grid line color.
    speednumber1Animation speed multiplier.
    cellSizenumber40Grid cell size in px.
    amplitudenumber1How far ripples bend the lines.
    frequencynumber1Ripple ring density.
    glownumber1Halo around the lines.
    mouseStrengthnumber1Cursor ripple strength.
    classNamestring—Extra classes for the root element.