Show citations and references alongside an AI response. Sources renders a numbered list; Source renders a single citation for custom layouts.

npx slipstream-ui@latest add sources
Sources list
Sources
The official guide to building user interfaces with React.
AI-first components with machine-readable usage manifests.
Single Source

Props

PropTypeDefaultDescription
sourcesSourceItem[]—References to display (Sources).
maxDisplaynumber3Max references before an overflow indicator.
labelstring'Sources'Heading label; override for localization.
indexnumber—1-based citation marker rendered as [n] (Source).

Accessibility

  • References use native links with rel="noopener noreferrer".
  • Citation markers are aria-hidden; titles are read as link text.