Trust & transparency
Inline citations
Use when an answer makes factual claims from several sources and readers need to check one without leaving the page.
Numbered source chips with an anchored popover pager.
Part of Trust & transparency. The stage where the answer has arrived and the user decides whether to believe it. These patterns show how the agent got there, what it read, and how sure it is. They matter most once people start acting on what the agent says.
Do
- Put the numbered chip straight after the claim it supports.
- Show the quoted passage in the popover, not only a link. The quote is what gets checked.
- Let readers page through every source from the open popover.
Don't
- Don't cite a source the answer did not use.
- Don't pile every chip at the end of the paragraph. Position is the information.
- Don't open sources in a new tab as the first step. Show the evidence in place.
States
- Resting: The answer with small numbered chips after each claim and a caption giving the source count.
- Popover open: Pressing a chip highlights it and opens a popover anchored under it with the source name, domain and the quoted passage.
- Paging: The popover's arrows step through the sources, with a counter such as 2 / 3, without closing it.
- Dismissed: Pressing the same chip again, or anywhere outside, closes the popover.
Usage
import { CitationsPattern } from "./halaska-kit";
<CitationsPattern />
Built from
Related patterns
Context sources, Streaming answer
Halaska UI · Components · Patterns · Screens · Install