A list of items where hovering each row reveals a thumbnail that follows the cursor — case-study index pattern, magazine-grade.
import TextImageCursor from '@crazygl/hero-text-image-cursor';
export default function Hero() {
return (
<TextImageCursor
item1Label="Driftwood Studio"
item1Image="/work/driftwood.jpg"
thumbW={280}
/>
);
}label and an image.textColor (idle), hoverColor (active row), fontSize, thumbW (thumbnail width), headingFontFamily (Google font), headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-text-image-cursorThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextImageCursor from '@crazygl/hero-text-image-cursor';
export default function Landing() {
return (
<TextImageCursor />
);
}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 TextImageCursor from '@crazygl/hero-text-image-cursor';
export default function Page() {
return (
<section>
<TextImageCursor
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}