Neon-lit cyberpunk heading with magenta + cyan glow, periodic flicker, and faint scanlines — Night City wall poster vibes.
import CyberpunkText from '@crazygl/hero-cyberpunk-text';
export default function Hero() {
return (
<CyberpunkText
heading="NEON CITY"
subheading="after midnight"
primary="#ff3aff"
secondary="#3affff"
/>
);
}heading and subheading text.primary and secondary glow colours, plus flickerHz (flicker rate in Hz; 0 = steady).textColor, subColor, fontSize, headingFontFamily (a Google font, default Major Mono Display), headingFontWeight.transparentBackground toggle and bgColor.npm install @crazygl/hero-cyberpunk-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CyberpunkText from '@crazygl/hero-cyberpunk-text';
export default function Landing() {
return (
<CyberpunkText />
);
}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 CyberpunkText from '@crazygl/hero-cyberpunk-text';
export default function Page() {
return (
<section>
<CyberpunkText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}