Skip to content

SourceCard

Stable

A numbered link card for one source.

Also known as source, reference card, link card, citation card

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

Source list

The numbers match the small numbers in the text.

When to use it

One numbered source that an answer drew on. The number matches the citation in the text, so people can check where a claim came from.

Made of: Number marker · Title · Website · Excerpt

Use it for

  • The list of sources under a reply.
  • A place for citation markers in the text to jump to.

Not for

Do and avoid

Do. The number, title and website show where the claim came from.
Avoid. With no website shown, people cannot tell where the link goes.

Do

  • Put cards in a numbered list so they match the small numbers in the text.
  • Keep numbers steady and matching the CitationMarkers.
  • Add an excerpt when the title alone is unclear.

Avoid

  • Do not use lime for text. Here it only fills the small number circle.
  • Do not leave the website blank. It tells people where the link goes.
  • Do not use it outside a list.

On a phone

  • The whole card is one link that opens in a new tab, so the tap target is the full card.
  • The title is cut to one line and the snippet to two lines, so every card stays short.
  • Render it inside a list that sets the columns. The card itself fills the width it is given.

Build your next AI screen with Tattva.

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

Get started