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
Installation
npx shadcn@latest add @glint-ui/dot-terrainFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| lowColor | string | "#5b4bff" | Dot color in the valleys. |
| highColor | string | "#5eead4" | Dot color on the crests. |
| speed | number | 1 | Travel and wave speed multiplier. |
| amplitude | number | 1 | Wave height. |
| dotSize | number | 1 | Dot size multiplier. |
| density | number | 1 | Grid density multiplier. |
| className | string | — | Extra classes for the root element. |