Utility

Typewriter

Text animation component that types out characters sequentially with blinking cursor and completion callback.

Plain text (40 chars/sec):

Markdown-aware:

Props

PropTypeDefaultDescription
textstring-Full text to type out
speednumber40Characters per second
delaynumber0Delay before typing starts (ms)
cursorbooleantrueWhether to show blinking cursor
cursorCharstring"▍"Character to use as cursor
onComplete() => void-Callback when typing finishes
instantbooleanfalseShow full text immediately

Import

import { Typewriter, MarkdownTypewriter } from '@blastx/ui-ai';