Skip to Content
UI Kit
Components (172)

Response Stream

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Response Stream…

Usage

import { ResponseStream } from "ui-kit/components/response-stream";

Props

PropTypeDefaultDescription
text*string""The answer so far – keep appending while it streams; a trailing half word waits until it is whole
status*ResponseStatus——
errorstring—What went wrong, in one sentence – shown when status is "failed"
steerResponseSteer[][]Messages sent while it writes – steer and queued chips above the answer
bendsResponseBend[][]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
escToStopbooleantrueEsc stops the answer while it streams (unless typing in a field) – on by default
classNamestring——

On this page