VolCitationList
<VolCitationList citations={response.citations} activeIndex={active} onSelect={(c, i) => setActive(i)} />| Prop | Type | Default | Description |
|---|---|---|---|
citations |
Citation[] |
— | Renders nothing when empty. |
onSelect |
(citation, index) => void |
— | Click on a source (0-based index). |
activeIndex |
number | null |
— | Highlights a source in the accent colour. |
compact |
boolean |
false |
Hide snippet and score. |
title |
string | null |
"Sources" |
Section label; null hides it. |
className |
string |
— |
VolCitationList is purely presentational and does not read the provider, so you can also use it outside
<VolProvider> — for example to render citations you fetched on the server.