Streaming Text

Reveal accumulated plain text safely with pause, replay and reduced-motion support.

Streaming Text

Default

New text arrives with a brief blue, violet and pink tint before returning to the normal text color. The status row and full response remain after completion. Code Block demonstrates a terminal panel reveal and incremental command output; commands are displayed, never executed.

Append incoming chunks to text. Pausing preserves the reveal position; replacing the earlier prefix restarts it. finish reveals all pending text, while replay restarts the current answer. The streaming flag reflects the producer independently of the finish event.

API

PROPS

Property
Type
Description
default
Example
More
text
String
The accumulated plain response. Append chunks to this string; replacing its prefix restarts reveal.
''
interval
Number
Reveal tick interval in milliseconds. 0 shows all immediately; long text uses at most 200 ticks.
18
paused
Boolean
Pause reveal without losing its current position.
false
animate
Boolean
Enable reveal animation. Reduced-motion preferences still show text immediately.
true
streaming
Boolean
Whether the producer is still streaming, independent of local reveal completion.
false

EVENTS

Event
Type
Description
default
Example
More
finish
() => void
The currently accumulated text has finished revealing, including empty text. This does not indicate that the producer has stopped.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
default
{ text: string; busy: boolean; chunks: { text: string; key: string }[]; paragraphs: { text: string; key: string }[][]; wordClass: string }
Render structured content with safe chunks, paragraph groups and the matching reveal class.
—
—

EXPOSES

Method
Type
Description
default
Example
More
finish
() => void
Component-owned finish access.
—
—
replay
() => void
Component-owned replay access.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied