InlineCitation

A numbered citation marker inside AI-generated text that links to its source and previews it in a hover card

Category: display · WCAG 2.2-AA · ai, citation, sources, footnote, references, provenance

Props

PropTypeDefaultDescription
indexnumber—The visible citation number — the source’s position in the matching Sources list.
sourceAiSource—The cited source (`title`, `url`, optional `description`). Only absolute http(s) URLs become links.
labels{ source?: string }—Overrides for the component’s user-visible strings (i18n). `source` may contain `{index}`; the accessible name is "<source>: <title>".

Design tokens

When to use

When not to use

How to build an accessible InlineCitation in React →

Examples

In a sentence

<p>
  Refunds are available for 30 days.
  <InlineCitation index={1} source={{ title: 'Refund policy', url: 'https://example.com/refunds' }} />
</p>

Related components

← Back to docs