Components
StreamingText
Token-by-token text rendering with blinking cursor for LLM streaming.
Render text as it streams in from an LLM API. The component displays a blinking cursor while streaming and fires onComplete when done. No artificial delay — text appears immediately as the text prop updates.
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | Current text to display (required) |
streaming | boolean | true | Whether streaming is in progress |
cursor | string | '█' | Cursor character |
cursorBlinkSpeed | number | 530 | Cursor blink interval in ms |
color | string | — | Text color override |
onComplete | () => void | — | Called when streaming ends |
theme | InkUITheme | darkTheme | Color theme |