Heading filled with a slowly drifting multi-stop linear gradient — three configurable colours, customizable angle, optional animation.
import GradientText from '@crazygl/hero-gradient-text';
export default function Page() {
return (
<GradientText
heading="spectrum"
color1="#ff5c8a"
color2="#ffd86b"
color3="#5b8def"
angle={100}
speed={8}
/>
);
}heading, subheading.color1/color2/color3, angle, animate, speed.fontSize, headingFontFamily, headingFontWeight, subColor.transparentBackground, bgColor.npm install @crazygl/hero-gradient-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import GradientText from '@crazygl/hero-gradient-text';
export default function Landing() {
return (
<GradientText />
);
}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 GradientText from '@crazygl/hero-gradient-text';
export default function Page() {
return (
<section>
<GradientText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}