Typewriter that only deletes the diverging tail between phrases — keeps shared prefixes intact and types only the new ending, like a writer correcting themselves.
import SmartTypewriterPro from '@crazygl/hero-smart-typewriter-pro';
export default function Hero() {
return (
<SmartTypewriterPro
phrases={`We design websites.\nWe design experiences.\nWe design brands.`}
typeSpeed={70}
/>
);
}phrases (one phrase per line).typeSpeed, deleteSpeed, holdMs.cursor glyph (|, _, ▌), cursorColor.textColor, fontSize, headingFontFamily, headingFontWeight.transparentBackground, bgColor.npm install @crazygl/hero-smart-typewriter-proThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import SmartTypewriterPro from '@crazygl/hero-smart-typewriter-pro';
export default function Landing() {
return (
<SmartTypewriterPro />
);
}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 SmartTypewriterPro from '@crazygl/hero-smart-typewriter-pro';
export default function Page() {
return (
<section>
<SmartTypewriterPro
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}