A pro-grade typewriter: cycles through multiple strings with variable per-character speed, fluid font sizing (clamp), per-line gradient fills, and a choice of cursor characters from block to slug to bar.
import ProTextTypeEffect from '@crazygl/hero-pro-text-type-effect';
export default function Page() {
return (
<ProTextTypeEffect
lines={[
'Hello, reference folks!',
'This is the ultimate typing text component',
'Check out what all you can do from the panel on the right →',
]}
variableSpeed
cursorChar="▋"
useGradientFill
/>
);
}lines may also be a single \n-separated string (matches the customizer textarea).
lines (cycled strings), subheading, ctaLabel, onCTAClick (URL or function).loop, variableSpeed, typingMin / typingMax (or constant typingSpeed), deletingSpeed, startDelay, pauseDuration.showCursor, cursorChar, cursorColorMode, cursorBlinkSpeed, hideCursorWhileTyping.sizingMode (fluid clamp vs fixed), fluidMin / fluidMax / fluidScale, or fontSize.useGradientFill with fillColor1 / fillColor2, textColor, letterSpacing, headingFontFamily, headingFontWeight.bgColor, accentColor / accentStrength bloom, vignetteStrength, transparentBackground.npm install @crazygl/hero-pro-text-type-effectThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import ProTextTypeEffect from '@crazygl/hero-pro-text-type-effect';
export default function Landing() {
return (
<ProTextTypeEffect />
);
}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 ProTextTypeEffect from '@crazygl/hero-pro-text-type-effect';
export default function Page() {
return (
<section>
<ProTextTypeEffect
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}