easeUI

Streaming Response

Wraps a response with the actions people expect once it settles: copy, replay, share, a thumbs up or down, and a list of suggested follow-up prompts. No card or border, so the answer reads as part of the page.

Installation

$ bunx --bun shadcn add @easeui/streaming-response
In easeUI ProStreaming MessageMarkdown that streams in word by word, with code blocks you can copy and actions that wait until the answer is done.See it

API reference

PropTypeDefaultDescription
childrenReactNode-The response itself, such as a StreamingText or rendered markdown. Left unstyled: no card, no border.
status?"streaming" | "complete" | "error"streamingDefault "streaming". The action row fades in once this leaves "streaming".
copyText?string-Text the copy action writes to the clipboard. Omit to hide that action.
onRetry?(() => void)-Shows a replay action. Omit to hide it.
onShare?(() => void)-Shows a share action. Omit to hide it.
showFeedback?booleanfalseShows a thumbs up / down toggle. Default false.
feedback?StreamingResponseFeedback-Controlled feedback value.
defaultFeedback?StreamingResponseFeedbacknullStarting feedback when uncontrolled. Default null.
onFeedbackChange?((feedback: StreamingResponseFeedback) => void)--
followUps?{}-Suggested next prompts, listed below the actions once settled. Omit to hide the list.
onFollowUp?((text: string, index: number) => void)--
className?string--