Skip to main content

Streaming Text

Show an answer as it arrives, each new word fading in, with a caret & a waiting line.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
textstring-
streamingbooleanfalseStill arriving: draws a caret after the last word, or the waiting line before the first.
Still arriving: draws a caret after the last word, or the waiting line before the first.
pendingshimmer | dots | caretshimmerWhat shows before the first word arrives.
What shows before the first word arrives.
pendingLabelstringGeneratingThe waiting line's words, for shimmer.
The waiting line's words, for shimmer.
animatedbooleantrue
classNamestring-