Document Reference
A source card that preserves document identity, location, metadata, and the cited excerpt.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/document-reference.jsonAPI reference
Document Reference
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Names the referenced document. |
location | string | — | Identifies a page, line range, or section. |
excerpt | string | — | Displays the cited source passage. |
onOpen | () => void | — | Opens the original document. |