Skip to content

StreamingText

StreamingText(__namedParameters): ReactElement

Defined in: react/components/agent/streaming-text.tsx:31

Inline text with a blinking caret while it streams — the token-by-token “typing” affordance for an assistant reply. Pass the accumulated text and flip streaming to false when the turn completes; the caret then disappears. The caret animates itself off the render clock (no ticking prop).

<StreamingText streaming={!done}>{reply}</StreamingText>

For rich replies, render Markdown above and use this only for the live tail, or drop a bare <StreamingText streaming> {""} </StreamingText> as a cursor.

StreamingTextProps

ReactElement