Citations
Preview
Install
Add it with your package manager, or copy the source manually.
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
Citation
citationIdstring—indexnumber—idPrefixstringMust match the related Citations idPrefix.
—label?stringAccessible name for the marker. Defaults to `View citation {index}`. Include the index so voice control users can say the number they see.
—class?string—labels?Labels—CitationFavicon
url?string—icon?ComponentDrawn instead of the favicon when truthy.
—class?string—CitationStack
citationsCitationItem[]—limit?number3class?string—CitationList
citationsCitationItem[]—idPrefix?string—class?string—Citations
citationsCitationItem[]—title?string—v-model:open?booleanundefineddefaultOpen?booleanfalseidPrefix?string—class?string—labels?LabelsOverride any built-in string.
—@open-change?(value: boolean) => void—Composition
Pair inline citation markers with a source disclosure owned by the same response.
StreamingResponse
├── Citation
└── Citations
├── CitationStack
└── CitationListNote: Streaming Response reveals the source summary when the answer completes. Message keeps cited answers within a semantic conversation row.
How it works
Citations connect a claim to supporting material without interrupting the answer. Inline markers should stay lightweight while the source collection provides enough information to inspect the evidence.
Updated