The DOM element to display text in
The text to display
Optionaloptions: TypewriterOptions = {}Typewriter options
Options for configuring the typewriter text effect.
TypewriterOptions
OptionalonComplete?: () => voidCallback function invoked when the animation completes (either naturally or when cancelled).
Optionalspeed?: numberCharacters per second. Higher values mean faster typing.
A cancellable promise that resolves when animation completes.
Call .cancel() to immediately show the full text.
Displays text character by character with a typewriter effect.
The text is revealed one character at a time, creating a typing animation. The returned promise can be cancelled to immediately show the full text.