
Usage
import { InlineCitation } from "@/registry/components/inline-citation/inline-citation";
<InlineCitation source={/* … */} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
source | CitationSource | The source cited. | |
index? | number | Show a number (as in [1]) instead of the label. | |
defaultOpen? | boolean | false | Start open (for docs and screenshots). |
openDelay? | number | 10 | Milliseconds before it opens on hover. |
closeDelay? | number | 100 | Milliseconds before it closes after the pointer leaves. |
className? | string |
When to use
AI answers, summaries and reports where each claim should point at the document, page, message or result it came from, right where the claim is made.
When not to use
A full list of everything an answer used (put a sources list under the message); plain links to other pages (use a link); explaining a UI control (use a tooltip).