Citation Dossier
ProNewOpen a numbered citation beneath an answer to inspect its highlighted excerpt and attribution.
Installation
pnpm dlx shadcn@latest add @viewport/citation-dossier
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| answer* | stringAnswer whose references can be inspected. | — |
| sources* | Source[]Ordered references with a stable ID, title, byline, excerpt and optional source URL. | — |
Accessibility
- Citation buttons expose the active reference. The source link stays in the document flow.