Installation
npx shadcn@latest add @iconiq/typewriterProps
TextTypewriter
Looping typewriter text effect that types a string character by character, briefly swaps in glitch characters, and finishes each pass with a blinking cursor.
childrenstringRequired
classNamestringdurationnumberDefault 3
The rendered text is announced with aria-live=polite so updates can be surfaced without replacing surrounding content.
Typing and glitch behavior
The animation schedules a small sequence of per-character timeouts, occasionally inserts a wrong character, removes it, then types the intended character before continuing.
After the full string is typed, the cursor briefly returns and the sequence starts again from an empty string.
Spaces are typed directly without the wrong-character substitution, which keeps word breaks stable during the effect.
Unmount cleanup clears every pending timeout, so remounting the preview or leaving the page does not leave animation work behind.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: motion.