Component packs › Synapse › Stream Text
Answers resolve word by word out of a soft blur, led by a glowing caret.
Stream Text is a text from Synapse, a component pack with 6 components: The interface pieces every AI product needs. Price: free.
Built with: live token append, natural pacing, screen-reader friendly.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
Install with the shadcn CLI: npx shadcn@latest add https://motionmart.store/r/stream-text.json
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 18 | Words per second for stream(). Default 18. |
autoplay | boolean | Showcase mode: streams sample answers on a loop. |
stream(text: string): Promise<void>: Animate a whole string in, word by word.append(chunk: string): void: Append a chunk from a live token stream.done(): void: Mark the stream finished (hides the caret).clear(): voiddestroy(): voidimport StreamText from './StreamText';
<StreamText />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: AI product landing pages, AI chat and chat UI components.