Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Citation Dossier

ProNew

Open 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

PropTypeDefault
answer*string

Answer 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.