For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/en/components/message-citation.md.

Message Citation

Message Citation links one claim to a named source without interrupting the reading flow. Source retrieval and preview behavior belong to the application.

Live preview

The package exposes stable semantic selectors for every public component 1Component manifestcomponents.json.

Usage

<a class="message-citation" href="#source-1">
  <span data-citation-index>1</span>
  <span data-citation-title>Component manifest</span>
  <span data-citation-source>components.json</span>
</a>

Parameters

APIValuesPurpose
Root <a>RequiredNative navigation to the source
data-citation-indexOptionalCompact reference index
data-citation-titleRequiredHuman-readable source title
data-citation-sourceOptionalHost, file, or publisher

States and variants

Unavailable citations remain text with a clear unavailable label; do not leave broken links active.

Accessibility

The link name must make sense outside the surrounding sentence. Restore focus after closing a citation preview.