The records an AI answer used, under one line that opens into the list, built on shadcn's Trace like its Sources.
Installation
bunx shadcn@4.22.1 add @organui/clinical-sourcesThis adds components/ui/clinical-sources.tsx, built on shadcn's components in your project's Base UI or Radix style.
Usage
import { ClinicalSources } from "@/components/ui/clinical-sources"
<ClinicalSources sources={records} />API Reference
| Prop | Description |
|---|---|
sources | The records the answer used, as for Clinical citation. |
defaultOpen | Opens the list on first render. Defaults to false. |
Notes
Built like shadcn's Sources, on its Trace: one line, "Used 4 records", that opens into the list.
For the model's reasoning, use shadcn's Reasoning or Chain of Thought, also built on Trace; the example on the AI Elements page shows one beside these.