Components
Typewriter
Character-by-character text animation with configurable speed and delay.
Animate text as if it's being typed in real-time. Unlike StreamingText, this has intentional delay for dramatic or onboarding effect.
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | Full text to type out (required) |
speed | number | 30 | Characters per second |
delay | number | 0 | Delay before starting (ms) |
cursor | boolean | true | Show blinking cursor during typing |
cursorChar | string | '▌' | Cursor character |
onComplete | () => void | — | Called when typing completes |
playing | boolean | true | Start animation (false = show full text) |
theme | InkUITheme | darkTheme | Color theme |