AsterUIDocsv1.0.2

Docs / Component reference

StreamingText

Display a response as pieces of text arrive. The caller supplies the text stream.

Streaming text example

Install

sh
npx @fierst/ui@1.0.2 add streaming-text

Registry dependencies: theme.

Exports from ./ui/streaming-text: StreamingText.

Download the registry source for streaming-text 1.0.2.

API contracts

ts
export function StreamingText({
  text,
  streaming = false,
  class: extraClass,
}: {
  text: string;
  streaming?: boolean;
  class?: string;
})