# AI Stream Text

> Text that arrives a few words at a time like an AI assistant answering, each word fading up from a soft blur behind a pulsing caret.

Category: Text · MotionKit Plus · Updated 2026-11-14 · Live demo: https://www.motionkitui.com/components/ai-stream-text

## When to use it

AI product landing pages, chat and assistant demos, onboarding flows and anywhere you show what a model would say.

## How it works

The text is split into words with their spacing kept. A timer reveals one at a time, at a pace that varies a little and pauses longer after commas and full stops, like real streaming. Each new word fades up from a slight blur, and a caret pulses at the end until the last word arrives. Screen readers get the whole response at once.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/ai-stream-text` after adding their registry token from https://www.motionkitui.com/account.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `text` | `string` |  | The full response; line breaks start new lines. |
| `speed` | `number` | `14` | Roughly how many words arrive per second. |
| `delay` | `number` | `0.6` | Seconds before the first word. |
| `caret` | `boolean` | `true` | Show a caret while streaming. |
| `trigger` | `"view" \| "mount"` | `"view"` | Start when scrolled into view, or straight away. |
| `replay` | `number` | `0` | Change it to stream again from the start. |
| `onDone` | `() => void` |  | Called when the last word has arrived. |

## Accessibility

- **Keyboard: Not applicable.** Text, nothing to operate.
- **Screen readers: Pass.** Screen readers get the whole response at once from a hidden copy, not word by word.
- **Reduced motion: Pass.** With reduced motion on, the whole text appears straight away.
- **Colour contrast: Pass.** Inherits your text colour; words are only faint for the moment they arrive.
