A flat blueprint grid of dim plus-markers on near-black. Move or tap and the markers around your touch bloom into glowing cyan dots — spreading with a soft ripple, trailing behind your path, and fading back to quiet crosses.
import TouchDotMatrix from '@crazygl/hero-touch-dot-matrix';
export default function Page() {
return (
<TouchDotMatrix
heading="Touch the grid"
dotColor="#4fd6e8"
touchRadius={150}
trailPersistence={0.55}
/>
);
}gridSpacing, markerSize (plus-arm length), showLattice for the faint dashed graph-paper lines.touchRadius, trailPersistence (how long lit dots linger behind your path), rippleSpeed (clicks fire an expanding ring), glowStrength.markerColor (resting crosses), dotColor (lit dots), bgColor or transparent.npm install @crazygl/hero-touch-dot-matrixThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TouchDotMatrix from '@crazygl/hero-touch-dot-matrix';
export default function Landing() {
return (
<TouchDotMatrix />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import TouchDotMatrix from '@crazygl/hero-touch-dot-matrix';
export default function Page() {
return (
<section>
<TouchDotMatrix
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}