StreamingText

Reveals text character by character with a blinking cursor, catching up as a streamed reply grows

Category: display · WCAG 2.2-AA · ai, streaming, typewriter, text, chat

Props

PropTypeDefaultDescription
textstring—The target text. Pass the accumulating reply as it streams; typing catches up as it grows, and restarts if it is replaced by a shorter string.
speednumber2Characters revealed per animation frame.
onComplete() => void—Called when the displayed text has caught up with `text`.

Design tokens

When to use

When not to use

How to build an accessible StreamingText in React →

Examples

Typing

<StreamingText text="Hello, I am cascivo." speed={3} />

Related components

← Back to docs