From Infinity UI by Infinity UI, LicenseRef-InfinityUI license.
UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { PinLawn } from "@/components/effects/pin-lawn/pin-lawn";
export default function Background() {
return (
<PinLawn
className="h-svh w-full"
dotColor="#aeb7bd"
accentColor="#b8ff3d"
backgroundColor="#080a0b"
spacing={28}
dotSize={0.26}
mark="dot"
stiffness={2.1}
damping={0.16}
linger={4}
idleSway={1}
autoplay={true}
pushRadius={120}
pushStrength={1}
shockStrength={1}
shockSpeed={220}
interactive={true}
edgeFade={0.45}
fadeSide="left"
glow={0.8}
gloss={0.2}
/>
);
}Colours
Controls
Mark
A grid of small marks on springs. A fast cursor shoves them, a slow one combs them, and they wobble and settle; a click sends a ring through the lawn. Combed marks stay leaning for a moment. The grid is capped on very large stages, and reduced motion shows one composed still frame.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| dotColor | string (hex colour) | "#aeb7bd" | Colour of the marks while they rest. |
| accentColor | string (hex colour) | "#b8ff3d" | Colour the marks take while they move or lean. |
| backgroundColor | string (hex colour) | "#080a0b" | Colour of the backdrop behind the lawn. |
| spacing | number (14 to 64) |























