Skip to main content
The chip renders [n] in superscript, announces Source n: label, and shows the source label on hover or focus through the shared tooltip primitive. Safe URLs render an anchor; missing or unsafe URLs render a focusable button, so keyboard users can still inspect the tooltip. onNavigate runs only for a sanitized URL, with an event whose default action is already prevented.

Props

Source: packages/ui/src/agentic/InlineCitation.tsx Tests: packages/ui/tests/inline-citation.test.tsx