Skip to content

SummaryCard

Stable

An AI-written overview with its sources, a warning to double-check, and a way to give feedback.

Also known as ai summary, overview card, tldr

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

With citations and detail

AI-generated

Overview

Based on 2 sources

Renewables supplied about a quarter of national generation last year.

Sources

  1. 1Annual energy review 2025energy.example.govRenewables supplied 24 percent of generation.
  2. 2Grid storage outlookjournal.example.edu

AI responses may include mistakes. Check important information.

The numbers open source previews. Show more reveals the detail.

When to use it

Holds an AI-written overview together with what people need to judge it: an AI label, what it is based on, its sources, a note to double-check and a way to give feedback.

Made of: AI label · Title · Status line · Summary · Show more button · Extra detail · Sources · Note to double-check · Feedback

Use it for

  • A summary of a long thread, document or set of search results.
  • An overview at the top of results, with sources and citations.
  • A summary still being written, with a status line and a spinner.

Not for

  • The closing point of a single answer: use KeyTakeaway.
  • A normal assistant reply in a chat: use Message.
  • A list of sources on its own: use SourceList.

Do and avoid

AI-generated

Trip overview

Based on 2 sources

Three nights in Lisbon. You land Friday at 10 and check in at 2.

Sources

  1. 1Hotel bookingexample.com
  2. 2Flight timesexample.org

AI responses may include mistakes. Check important information.

Do. The AI label, sources and a check-it note travel with the summary.
AI-generated

Trip overview

Three nights in Lisbon. You land Friday at 10 and check in at 2.

AI responses may include mistakes. Check important information.

Avoid. Facts with no sources leave people nothing to check.

Do

  • Say in the status line what the summary is based on.
  • Put the note to double-check under the content, and make it specific for sensitive topics.
  • Put citations in the text, so each fact can be checked.
  • Keep the first view short. Put the depth behind Show more.

Avoid

  • Do not make screen readers read the summary as it appears. Update the status line instead.
  • Do not remove the AI label.
  • Do not leave out sources when the summary states facts.

On a phone

  • The card fills the width with 20px padding. The title row wraps, and the status moves to its own line if it does not fit.
  • The Show more button, the feedback buttons and the reasons keep their size and have a 44px tap area on touch screens.
  • Sources stack in one column below 640px wide. Citation markers inside the text follow the Citation hover card rules.

Seen in products

  • Google AI Overviews is a generated answer block at the top of results with source links and a disclaimer.
  • In May 2025 the Google disclaimer changed from Generative AI is experimental to AI responses may include mistakes, and was expanded for financial and legal topics.
  • A Google UI refresh added hover link previews on citations.
  • Slack AI gives thread summaries and channel recaps with sources cited in each summary.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started