StreamingText
display
StreamingText: renders text that "streams in" token by token with a blinking cursor
Terminal
$termuijs render streaming-text
Installation
$ bunx termuijs add streaming-text
Copies the source into src/components/streaming-text/ and installs @termuijs/core, @termuijs/motion, @termuijs/widgets.
Usage
ts
import { StreamingText } from '@termuijs/widgets'ts
new StreamingText(options: StreamingTextOptions, style: Partial<Style> = {})API Reference
StreamingText
| Prop | Type | Required | Description |
|---|---|---|---|
text | string | required | Full text content |
cursor | string | optional | Cursor character |
speed | number | optional | Characters to reveal per tick (0 = show all immediately) |
blinkInterval | number | optional | Cursor blink interval in ms |