Components (172)
Response Stream
Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.
Loading Response Stream…
Usage
import { ResponseStream } from "ui-kit/components/response-stream";Props
| Prop | Type | Default | Description |
|---|---|---|---|
text* | string | "" | The answer so far – keep appending while it streams; a trailing half word waits until it is whole |
status* | ResponseStatus | — | — |
error | string | — | What went wrong, in one sentence – shown when status is "failed" |
steer | ResponseSteer[] | [] | Messages sent while it writes – steer and queued chips above the answer |
bends | ResponseBend[] | [] | Places where a steer bent the answer – a quiet divider in the text |
agent | { id: string; name: string; color?: string; } | — | Who answers – the pixel mark is drawn from the id, in the color (blue when left out) |
meta | { tokens?: number; ms?: number; } | — | Shown in the done footer |
onStop | () => void | — | — |
onContinue | () => void | — | — |
onRetry | () => void | — | — |
onDismiss | () => void | — | Called after the stopped answer has faded out |
onRemoveSteer | (id: string) => void | — | — |
onCopy | (text: string) => void | — | Copy in the done footer – the visible text is copied to the clipboard as well |
onRegenerate | () => void | — | Regenerate in the done footer |
escToStop | boolean | true | Esc stops the answer while it streams (unless typing in a field) – on by default |
className | string | — | — |