Hoverable citations inline with text — a pill shows source hostnames, and the card carousels full titles, URLs, and quotes.
Default
Hover the citation pill to browse sources in a carousel with title, URL, and description.
Loading…
Installation
CLI
Also needs
npx @sonojs/ui@latest add badge carousel hover-card && npm i lucide-reactUsage
inline-citation.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| InlineCitationCardTrigger sources | string[] | — | Source URLs — first hostname is shown, plus `+N` when more exist. |
| InlineCitationSource | title? / url? / description? | — | Source metadata inside a carousel slide. |
| InlineCitationQuote | blockquote props | — | Optional quoted excerpt with a start-edge border. |
| InlineCitationCarousel* | Carousel wrappers | — | Prev / next / index wired through a shared Embla API context. |