Sources
Markdown for agentsShow 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 sourcesSources list
Sources
The official guide to building user interfaces with React.
AI-first components with machine-readable usage manifests.
Single Source
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| sources | SourceItem[] | — | References to display (Sources). |
| maxDisplay | number | 3 | Max references before an overflow indicator. |
| label | string | 'Sources' | Heading label; override for localization. |
| index | number | — | 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.