Numbered citations in a research answer open the sources and move focus to the cited source.
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: Inline citation buttons wired to a controlled sources row, focusing the cited link once its panel mounts
When to use
- Agent turns: reasoning, tool calls, subagents and the sources behind an answer
- Run logs that expand to output, from CI jobs and data builds to webhook deliveries
- Checklists of automated checks or setup steps with running, failed and pending states
When not to use
- One short status line per step with no expanding detail or status color: use the Marker component
- Dated events or milestones joined by a connecting line: use the Timeline component
- A complete run console with approvals, log views and an outcome report: use the Agent Activity blocks
Agent notes
- Citations call
showSource, which opens the row throughsourcesOpenand focuses a link held inlinkRefs - Status is shown by color and motion only, so every
TraceTitlemust also say in words that a step is running, failed or not started - A
TraceLineon its own is a plain span; wrap it in a link or a Dialog, Sheet or Popover trigger to make it act
https://reui.io/components/trace/c-trace-6.mdget_example("c-trace-6")npx shadcn@latest add @reui/c-trace-6About Shadcn Trace Cited Sources
Answer with citations. Built by composing Badge, Trace. Uses cn alongside the shadcn primitives. A free, open source shadcn trace example you can install with npx shadcn@latest add @reui/c-trace-6 and edit as your own code.
What You Can Build With Shadcn Trace Cited Sources
- Composes Badge, Trace, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-trace-6
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Trace Examples
- Agent Steps Agent steps
- Streaming Run Streaming agent run
- Chat Turn Chat turn with sources
- Subagents Parallel subagents
- Change Approval Terraform change approval
- Support Copilot Support copilot draft
- Install Summary CLI install summary
- CI Pipeline CI pipeline run
- Request Spans Distributed trace spans
- Error Breadcrumbs Error breadcrumbs
- Query Plan SQL query plan
- Data Pipeline Data pipeline run
Related Shadcn Component Categories
Open-source shadcn tree components for file explorers, nested navigation, and hierarchical data.
Open-source shadcn accordion components for FAQ layouts, settings panels, and help sections.
Open-source shadcn alert components for status messages, warning banners, and destructive notices.
Open-source shadcn alert dialog components for delete confirmations, destructive actions, and critical decisions.
Open-source shadcn aspect ratio components for responsive media, image galleries, and video previews.
Open-source shadcn attachment components for chat composers, upload states, and file previews.
Frequently Asked Questions
When should I use Shadcn Trace Cited Sources?
Use it for inline citation buttons wired to a controlled sources row, focusing the cited link once its panel mounts.
Shadcn Trace as a whole fits:
- Agent turns: reasoning, tool calls, subagents and the sources behind an answer
- Run logs that expand to output, from CI jobs and data builds to webhook deliveries
- Checklists of automated checks or setup steps with running, failed and pending states
For one short status line per step with no expanding detail or status color, use the Marker component. For dated events or milestones joined by a connecting line, use the Timeline component. For a complete run console with approvals, log views and an outcome report, use the Agent Activity blocks.
How do I install Shadcn Trace Cited Sources?
Is Shadcn Trace Cited Sources free to use?
Which components does Shadcn Trace Cited Sources use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.