AI

Streaming Text

Text that arrives in pieces: each new chunk fades in and a caret blinks while streaming. Plus the typing indicator.
import { StreamingText, TypingIndicator } from "pleate/ai/streaming-text";

Simulated stream

Press the button to stream a reply.

Props

text

The whole text so far.

string

streaming

Caret and aria-busy.

boolean

animate

Fade new chunks.

booleandefault true

TypingIndicator bubble

Dots inside a gray message bubble.

booleandefault false