Skip to content

    Browse components

    Dot Terrain

    A perspective field of glowing dots rolling toward you in terrain-like waves; the camera leans with the cursor. WebGL.

    Dot Terrain

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/dot-terrain

    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/dot-terrain.json

    Usage

    import { DotTerrain } from "@/components/ui/dot-terrain";
    
    <div className="relative h-96">
      <DotTerrain amplitude={1} />
    </div>

    Props

    PropTypeDefaultDescription
    lowColorstring"#5b4bff"Dot color in the valleys.
    highColorstring"#5eead4"Dot color on the crests.
    speednumber1Travel and wave speed multiplier.
    amplitudenumber1Wave height.
    dotSizenumber1Dot size multiplier.
    densitynumber1Grid density multiplier.
    classNamestring—Extra classes for the root element.