UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { DotGrid } from "@/components/ui/dot-grid";
export default function Background() {
return (
<DotGrid
className="h-svh w-full"
color="#3d3631"
activeColor="#ff784f"
gap={24}
dotSize={1.6}
radius={120}
/>
);
}Colours
Controls
A canvas dot grid where ripples travel out from the pointer, and from random spots when it is idle.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string (hex colour) | "#3d3631" | The resting dot colour. |
| activeColor | string (hex colour) | "#ff784f" | The colour dots reach at the crest of a ripple. |
| gap | number (10 to 64) | 24 | Distance between dots, in pixels. |
| dotSize | number (0.5 to 6) | 1.6 | Dot radius at rest, in pixels. |






























