component
TuxInlineCitation
Academic-style inline reference pill. Renders as a superscripted
[N] inside body text; hover/focus reveals a popover with title + URL + optional excerpt + optional retrieval score. Distinct from TuxCitations (the footer list); the two compose — inline pills index into the footer list. One source per pill, matching the academic convention (not Vercel's "+5" aggregation). basic
In prose
Place the tag right against the preceding word (no leading space) — citation pills are superscripted and bump up to the word they reference.
<p>
CLS-211 outperforms CLS-204 on ITAR-tier documents<tux-inline-citation
:n="1"
title="CLS retrain methodology · v3.1"
href="https://example.com/cls-retrain"
excerpt="The retrain pipeline runs nightly on the grants-2024-2026 corpus and emits both classifier checkpoints to the model registry."
score="0.91"
/> by ~5 percentage points<tux-inline-citation
:n="2"
title="ITAR rubric · §3.2 boundary cases"
excerpt="Boundary-case classification follows §3.2 (dual-use determination) with a 0.62 confidence threshold."
score="0.88"
/>.
</p>minimal
Title only
excerpt and score are optional. Pass only title for a minimal citation pill.
See the source for full context[3].
<p>
See the source for full context<tux-inline-citation
:n="3"
title="DoD-XR contract addendum"
href="https://example.com/dod-xr"
/>.
</p>trigger
Click mode
Defaults to hover (matches Vercel). Pass trigger="click" when keyboard-only or touch-first users matter more.
Click the pill instead of hovering → [4]
<tux-inline-citation
:n="4"
title="Click-mode citation"
excerpt="Use mode='click' for keyboard-first or touch-heavy surfaces; defaults to hover (Vercel convention)."
/>