Sources
Show citations and references alongside an AI response. Sources renders a numbered list; Source renders a single citation for custom layouts.
npx @slipstream-ui/cli@latest add sourceSources 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.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.