Show an answer as it arrives, each new word fading in, with a caret & a waiting line.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | |
streaming | boolean | false | Still 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. | |||
pending | shimmer | dots | caret | shimmer | What shows before the first word arrives. |
| What shows before the first word arrives. | |||
pendingLabel | string | Generating | The waiting line's words, for shimmer. |
The waiting line's words, for shimmer. | |||
animated | boolean | true | |
className | string | - | |