A heading scribbled like a real human — wobbly per-letter rotation, baseline jitter, varied ink weight, with an underline scribbled in as the line lands.
import BadHandwriting from '@crazygl/hero-bad-handwriting';
export default function Hero() {
return (
<BadHandwriting
heading="we ship like nobody is watching"
subheading="(but everybody is)"
wobbleAmount={8}
textColor="#ffffff"
/>
);
}heading, subheading.wobbleAmount (per-letter rotation), baselineJitter (vertical/horizontal offset), weightJitter (ink-weight variance), underline (toggle the scribbled underline).textColor, fontSize, headingFontFamily (Google font, default Caveat), headingFontWeight (base weight).transparentBackground, bgColor, paperGrain overlay.npm install @crazygl/hero-bad-handwritingThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import BadHandwriting from '@crazygl/hero-bad-handwriting';
export default function Landing() {
return (
<BadHandwriting />
);
}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 BadHandwriting from '@crazygl/hero-bad-handwriting';
export default function Page() {
return (
<section>
<BadHandwriting
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}