Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Streaming Text

ProNew

Smooths bursty token streams into an even reveal with words that fade in.

Installation

pnpm dlx shadcn@latest add @viewport/streaming-text

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
text*string

The text received so far. Append to it as tokens arrive.

—
speednumber

Characters revealed per second. The reveal speeds up if it falls behind.

90
streamingboolean

Whether more text is still coming. Controls the caret and `aria-busy`.

false
classNamestring—

Accessibility

  • Sets aria-busy while streaming and announces the full text once when done.
  • Shows text instantly under reduced motion.