Skip to content

SourceList

Stable

The numbered sources behind an answer, shown in two columns.

Also known as sources, references, bibliography, citations list

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

Three sources

The short quote is optional. Cards sit in two columns on wider screens.

When to use it

Shows where an answer came from: it lists the sources behind a reply as numbered cards, so people can check a claim. The numbers match the [1] markers in the text.

Made of: Sources heading · Numbered card · Title · Website · Short quote

Use it for

  • Under a finished reply that cites its sources.
  • Research answers where people may want to read the original.
  • Next to Markdown, whose [1] markers jump to the matching card.

Not for

Do and avoid

Do. Numbered sources with a title and site let people check the answer.

Sources: the internet, some websites, other places.

Avoid. Vague sources cannot be opened, so the answer cannot be checked.

Do

  • Use numbers that match the [n] markers in the reply.
  • Use real page titles and websites so people can judge a source at a glance.
  • Add a short quote when it shows why the source backs up the claim.
  • Show it only after the reply is finished, so nothing jumps while people read.

Avoid

  • Do not show a source the reply never mentions.
  • Do not reuse numbers across replies on one page. Links would point to the wrong source.
  • Do not use links you have not checked. Cards open whatever link you give them.

On a phone

  • Sources show in one column on a phone and in two columns from 600px wide.
  • Each source is a link that opens in a new tab, and its title is cut to one line and its snippet to two.
  • A source card is taller than 44px, so the whole card is an easy tap target.

Build your next AI screen with Tattva.

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

Get started