Forms
Navigation & layout
Data display & feedback
Date & time
Browse components
← All components
Streaming Response
Assistant answer with completion actions and a sources slot.
Install
npx shadcn@latest add https://ui.anuragroy.dev/r/streaming-response.jsonPreview
Loading preview…
Installation
Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.
Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/streaming-response.jsonGitHub fallback if the website is down:
Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/streaming-response.jsonUsage
Import paths follow your components.json aliases. After install, the default path is @/components/ui/streaming-response.
Import
import { StreamingResponse, StreamingResponseAction, StreamingResponseActions, StreamingResponseContent, StreamingResponseSources} from "@/components/ui/streaming-response"example.tsx
import { StreamingResponse, StreamingResponseActions, StreamingResponseContent,} from "@/components/ui/streaming-response"export function Example() { return ( <StreamingResponse> <StreamingResponseContent> <p>The dashboard should keep the sidebar persistent.</p> </StreamingResponseContent> <StreamingResponseActions /> </StreamingResponse> )}API Reference
StreamingResponse
Layout wrapper for an answer, actions, and sources.
| Prop | Type | Default |
|---|---|---|
| className | string | — |