Typewriter

Reveals text character by character, like a terminal being typed in real time. Screen readers receive the full string immediately; reduced motion renders it statically.

Installation

npx dafink-ui add typewriter

Demo

Props

NameTypeDefaultDescription
textstring-Required. The full text to type out.
speednumber50Milliseconds between each character.
delaynumber0Milliseconds to wait before typing begins.
cursorbooleantrueShow a blinking | cursor while typing.
cursorPersistbooleanfalseKeep the cursor visible after typing completes.
onComplete() => void-Called when all characters have been revealed.
classNamestring""Additional Tailwind classes merged onto the root span.