Utility
Typewriter
Text animation component that types out characters sequentially with blinking cursor and completion callback.
Plain text (40 chars/sec):
▍Markdown-aware:
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | - | Full text to type out |
| speed | number | 40 | Characters per second |
| delay | number | 0 | Delay before typing starts (ms) |
| cursor | boolean | true | Whether to show blinking cursor |
| cursorChar | string | "▍" | Character to use as cursor |
| onComplete | () => void | - | Callback when typing finishes |
| instant | boolean | false | Show full text immediately |
Import
import { Typewriter, MarkdownTypewriter } from '@blastx/ui-ai';