Heading marked up with hand-drawn doodle annotations — circle one word, scribble under another, arrow into a third. Reads like a designer's notebook.
import TextDoodles from '@crazygl/hero-textdoodles';
export default function Page() {
return (
<TextDoodles
before="We ship"
wordA="premium"
middle="design with a"
wordB="smile"
doodleColor="#ffd86b"
/>
);
}before, wordA (circled), middle, wordB (underlined), after.doodleColor.textColor, fontSize, headingFontFamily (default Caveat), headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-textdoodlesThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextDoodles from '@crazygl/hero-textdoodles';
export default function Landing() {
return (
<TextDoodles />
);
}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 TextDoodles from '@crazygl/hero-textdoodles';
export default function Page() {
return (
<section>
<TextDoodles
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}