Loading component…
Loading component…
An agent researching a question – the sources it finds on the left, the report taking shape section by section on the right, a line running from each source to the section it feeds
To reuse this local React demo, copy all files from the Code tab into the same folder, then import DeepResearchProgress from ./deep-research-progress.
import { DeepResearchProgress, type ResearchSection, type ResearchSource } from "@/components/ui/deep-research-progress";
const sources: ResearchSource[] = [
{ id: "stripe", title: "Billing for AI products", domain: "stripe.com", logo: <StripeLogo />, status: "read", sections: ["s1"] },
{ id: "github", title: "Premium requests in Copilot", domain: "github.blog", logo: <GitHubLogo />, status: "reading", sections: ["s1", "s2"],
quote: "Every plan includes a monthly allowance of premium requests.", mark: "monthly allowance" },
{ id: "intercom", title: "Fin's price per resolution", domain: "intercom.com", color: "#1F8DED", status: "queued", sections: ["s3"] },
];
const sections: ResearchSection[] = [
{ id: "s1", title: "Pricing models in use", status: "writing", words: 180, cites: ["stripe"] },
{ id: "s2", title: "What the big platforms charge", status: "queued" },
{ id: "s3", title: "Paying per outcome", status: "queued" },
];
export function Research() {
return (
<DeepResearchProgress
question="How are SaaS companies pricing AI agents in 2026?"
agent={{ id: "research", name: "Research agent", model: "Claude Opus 5.5" }}
sources={sources}
sections={sections}
elapsed={74}
onStop={stop}
onDeeper={(id) => steer(id)}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| question | string | What the agent was asked – not shown; it names the region for screen readers ("Deep research: …") | |
| sources | ResearchSource[] | What it found, in order – { id, title, domain, logo?, full?, color?, status, quote?, mark?, sections? }. status is queued, reading, read or skipped. logo is a small node on a white tile – with full, a whole app icon with its own background (Adobe's PDF, Stripe) that fills the tile edge to edge; without a logo, the domain's first letter – white on color, if given. quote and mark fill the source's card; sections are the ids it feeds | |
| sections | ResearchSection[] | The report, in order – { id, title, status, summary?, words?, cites?, deeper? }. status is queued, writing or done; cites are source ids, their logos stack up beside the summary | |
| agent | { id, name, model?, logo? } | Who researches – id draws its pixel mark, model and logo show as a tag | |
| elapsed | number | Seconds since it started – shown as a clock while it runs | |
| status | "running" \| "done" \| "stopped" | Default running. done shows Ready instead of the clock and, with onOpen, Open report in place of the footer ring; stopped shows Stopped and stops every motion | |
| onStop | () => void | Shows Stop while it runs | |
| onDeeper | (sectionId: string) => void | Shows Dig deeper on every section that isn't done – set deeper on it to show the tag | |
| onOpen | () => void | Shows Open report at the right of the footer row when it's done | |
| rows | number | The source list is as tall as the report beside it and scrolls – it never shows fewer rows than this (or than it has). Default 4 | |
| className | string | Extra class on the root – set the color variables on it, e.g. --ui-rsh-blue |
The report column gets a little more room than the sources; long titles shorten with an ellipsis
The source list ends where the report ends and scrolls inside – its foot fades out while there is more below
Sources, citations and words sit in a footer row with an icon each; on narrow cards the words beside the icons step aside (screen readers still hear them), so the numbers stay on one row
Narrow: the report goes under the sources, the list keeps a height of its own, the line steps aside and Dig deeper stays visible
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"