Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Citations

Preview

Use layout-aware motion for newly appended results 1 and preserve accessible disclosure behavior 2 as the list grows, keeping exits shorter than entrances 3.

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

bunx --bun shadcn-vue@latest add @beui-vue/citations

Import the shared styles once in your application.

TSUsage
import Citations from '@/components/beui/agents/Citations.vue'
import '@/components/beui/styles.css'

API Reference

Citation

citationId
string
Default—
index
number
Default—
idPrefix
string

Must match the related Citations idPrefix.

Default—
label?
string

Accessible name for the marker. Defaults to `View citation {index}`. Include the index so voice control users can say the number they see.

Default—
class?
string
Default—
labels?
Labels
Default—

CitationFavicon

url?
string
Default—
icon?
Component

Drawn instead of the favicon when truthy.

Default—
class?
string
Default—

CitationStack

citations
CitationItem[]
Default—
limit?
number
Default3
class?
string
Default—

CitationList

citations
CitationItem[]
Default—
idPrefix?
string
Default—
class?
string
Default—

Citations

citations
CitationItem[]
Default—
title?
string
Default—
v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaultfalse
idPrefix?
string
Default—
class?
string
Default—
labels?
Labels

Override any built-in string.

Default—
@open-change?
(value: boolean) => void
Default—

Composition

Pair inline citation markers with a source disclosure owned by the same response.

StreamingResponse
├── Citation
└── Citations
    ├── CitationStack
    └── CitationList

Note: 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.

Also on React Native. Tap a number and its source springs up.(opens in a new tab)

Updated