Skip to content
IndexRequest a UIAboutContact

Citation Source Chips

An AI answer with numbered source chips; focus, hover or tap one to see the source card.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of an AI answer paragraph with three small numbered chips inline after the claims, rounded grey pills with the numbers 1 2 3, and a hover card open below chip 2: a white card with the source title, a small site name with a favicon circle, and a two-line quotation, soft shadow, thin border, flat modern style, light theme. Negative: footnote numbers at the page bottom, heavy borders, gradients, text errors, clutter. Reduced motion: static card.

About this pattern

Definition

Citations tie each claim in an answer to where it came from. Small numbered chips sit inline, and a card with the source title, site and quote appears on hover, focus or tap. It lets readers check the answer without leaving it.

Purpose & UX principles

  • Place the chip directly after the claim it supports, not at the end of the paragraph.
  • Show title, publisher and a short quote in the card; link out only from the card.
  • Make the chips real buttons so keyboard and touch users can open them.

Interaction states

  • Three chips in a paragraph; hover, focus or tap opens the card; Escape closes it.

Motion specification

  • The card fades in over 150ms.
  • Reduced motion: it appears without fading.

Responsive behaviour

  • On touch, a tap opens the card and a second tap or Escape closes it.
  • Do not cover the sentence being cited with the card.

Code

HTML
<div class="bx"><p class="an">Global solar capacity grew by about 30% last year<button class="cc" data-i="0" aria-expanded="false">1</button>, and module prices fell to record lows<button class="cc" data-i="1" aria-expanded="false">2</button>. Most new projects were built in Asia<button class="cc" data-i="2" aria-expanded="false">3</button>.</p><div class="cd" id="cd" role="region" aria-live="polite" hidden></div></div>

Related patterns

AI Thinking States

↗
AI Thinking StatesAI & Conversational

AI Response Actions

↗
AI Response ActionsAI & Conversational

Streaming Chat Response

↗
Streaming Chat ResponseAI & Conversational