The heading casts a real drop shadow whose direction tracks the cursor — like a single fixed light moving across the room.
import CursorShadowText from '@crazygl/hero-cursor-shadow-text';
export default function Hero() {
return (
<CursorShadowText
heading="follow the light"
shadowColor="#5b8def"
maxOffset={40}
blur={12}
/>
);
}heading text.shadowColor, maxOffset (how far the shadow throws at the screen edges), blur.textColor, fontSize, headingFontFamily (Google Font), headingFontWeight.transparentBackground toggle and bgColor.npm install @crazygl/hero-cursor-shadow-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CursorShadowText from '@crazygl/hero-cursor-shadow-text';
export default function Landing() {
return (
<CursorShadowText />
);
}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 CursorShadowText from '@crazygl/hero-cursor-shadow-text';
export default function Page() {
return (
<section>
<CursorShadowText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}