Pass the whole answer so far. Only the new end fades in.
The sample also uses Card. One command adds them with this item:
assistant-answer.tsx
TextStreaming
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — | The text so far. Pass the whole text on each update ("Hel", then "Hello wor"): only the new end fades in. A text that does not start with the last one (a new answer, an edit) shows at once, with no motion. |
| animate | boolean | false | Fade in the text of the first render too. Default false: a message that is already there when the page loads (a chat history) shows at once. With it on, a text in the server HTML stays hidden until hydration starts its fade, and stays hidden with no JavaScript. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |





