StreamingText

Streaming answer surface with inline sources, actions, and follow-up prompts.

Installation

Preview

Source

Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.

API Reference

PropTypeDefaultDescription
loopbooleanfalseRestarts after completion.
fillbooleanfalseFills the parent width.
onDone() => voidCalled after streaming completes.
onAction(action: StreamingTextAction) => voidHandles response actions.
onFollowUp(prompt: string) => voidHandles a suggested follow-up.
onSourcesOpenChange(open: boolean) => voidReports source disclosure state.