When is the best time of year to visit Istanbul?
AI agent
JS behaviour
Streaming text
An answer arriving token by token: each word fades and un-blurs in, a caret blinks, and [1] citations open their source in a popover — Persian without breaking its letters.
Real scenarios
The component as it is used in a product — not a specimen grid.
اعتبارسنجی فرم را کجا انجام بدهم؟
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| text | string | "" | Everything received so far, with [n] for citations. Grow it from Livewire. |
| streaming | bool | false | Still arriving: caret on, a half-arrived marker held back. |
| sources | array | [] | Sources for [1], [2]…: title, url, domain, snippet. |
| simulate | bool | false | Plays the full text out in the browser (demos; replay with nx-replay). |
Snippet
<x-nx::streaming-text :text="$answer" :streaming="$isStreaming" :sources="$sources" />