Editorial-style paragraph with the first line indented and a giant drop-cap that overhangs into the margin — magazine-grade typography out of the box.
import TextStartIndent from '@crazygl/hero-text-start-indent';
export default function Hero() {
return (
<TextStartIndent
kicker="Field notes — Issue 03"
body="We design products the way a typesetter sets a page…"
dropCap
/>
);
}dropCap (drop-cap vs first-line indent), dropCapSize, indentSize (used when dropCap is off).textColor, kickerColor, dropCapColor, fontSize, lineHeight, headingFontFamily, headingFontWeight.bgColor or transparentBackground.npm install @crazygl/hero-text-start-indentThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import TextStartIndent from '@crazygl/hero-text-start-indent';
export default function Landing() {
return (
<TextStartIndent />
);
}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 TextStartIndent from '@crazygl/hero-text-start-indent';
export default function Page() {
return (
<section>
<TextStartIndent
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}