Sources

Collapsible, numbered list of the sources an AI answer drew on — "Used 3 sources" — whose numbers match InlineCitation

Category: display · WCAG 2.2-AA · ai, sources, citations, references, provenance, links

Props

PropTypeDefaultDescription
itemsAiSource[]—The sources, in citation order. Each has `title`, `url` and an optional `description`. Only absolute http(s) URLs become links; anything else (e.g. `javascript:`) renders as text.
labels{ summary?: string }—Overrides for the component’s user-visible strings (i18n). `summary` may contain `{count}`.

Design tokens

When to use

When not to use

How to build an accessible Sources in React →

Examples

Answer sources

<Sources
  items={[
    { title: 'Refund policy', url: 'https://example.com/refunds' },
    { title: 'Terms of service', url: 'https://example.com/terms', description: '§4 covers cancellations.' },
  ]}
/>

Related components

← Back to docs