InlineCitation
Perplexity-style inline citation: a superscript chip that reveals the source title and snippet on hover or keyboard focus. Use it to attribute individual claims inside a response; use Sources for the footer list.
npx @slipstream-ui/cli@latest add inline-citationHover or focus the chip
Assistant
Placeholder — content rendered below.
Most enterprises now run LLM features in production State of AI 202678% of enterprises shipped at least one LLM-powered feature in production..
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| source | SourceItem | — | Cited source powering the preview card. |
| children | ReactNode | — | Wrapped text; defaults to the source title. |
Accessibility
- Trigger is a focusable button; the card opens via focus-within.
- Card has role=tooltip linked by aria-describedby.
- Keep inline citations one-per-claim; long lists belong in Sources.
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.