Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Citation

Citation

A small numbered pill after a claim that links to its source: <a class="cite" href="#src-1">1</a>. Used in articles and assistant answers so every fact can be checked.

Usage

Use it when

  • An assistant answer or summary states facts drawn from documents: each claim gets a numbered citation to the document it came from.
  • A lesson or report refers to sources listed at the end.

Use something else when

  • A link the reader should follow as part of the sentence: use Link.
  • Reproducing the words of a source: use Quote.
  • A count of items next to a label: use Count.
  • A status or category tag: use Badge.
  • A preview of a linked page on hover: use Hover card.

Where it goes. Directly after the claim, before the period or after it consistently, with no space before it. The numbered sources follow at the end of the text or the message. On phones keep the sources list right below the answer so the jump is short.

Examples

In an answer, with sourcesEach claim points to the document it came from. Hover a number to see it darken.

The final exam is on 18 December in room B204 1. You may bring one handwritten page of notes 2, and the exam counts for 40 % of the grade 1.

Sources

  1. Database Systems syllabus, semester 3
  2. Exam regulations, article 12
<div class="prose">
  <p>The final exam is on 18 December in room B204 <a class="cite" href="#cite-src-1" aria-label="Source 1">1</a>. You may bring one handwritten page of notes <a class="cite" href="#cite-src-2" aria-label="Source 2">2</a>, and the exam counts for 40 % of the grade <a class="cite" href="#cite-src-1" aria-label="Source 1">1</a>.</p>
  <h3>Sources</h3>
  <ol>
    <li id="cite-src-1"><a href="#syllabus">Database Systems syllabus, semester 3</a></li>
    <li id="cite-src-2"><a href="#rules">Exam regulations, article 12</a></li>
  </ol>
</div>

Anatomy

PartWhat it is
a.citeRequired. 18 px tall pill on --accent-tint, 11 px semibold tabular number in --accent-text. href points to the source entry (or the source URL).
aria-labelRequired. "Source 1", so it is not read as a bare number.
sources listAn ordered list at the end whose items carry the matching ids. In .prose a plain <ol> is styled already.

States

StateHow
hoverBackground deepens to --accent-tint-strong over --d-fast.
focusSystem focus ring around the pill.
targetThe source item it points to; use :target in your project CSS or scroll it into view.

Motion and microinteractions

  • Only the hover color, over --d-fast. Jumping to the source uses the page's smooth scroll; under reduced motion it jumps.

Accessibility

  • An <a href> with aria-label="Source N"; the visible number alone is meaningless when read.
  • The pill is 18 px tall, under the 44 px touch target. Keep citations spaced apart in text and always provide the full sources list as a second way to reach them.
  • Number sources in order of first appearance and reuse the number for repeat citations.

Do and don't

Do

  • Cite every factual claim in an assistant answer that comes from a document.
  • List the sources with titles people recognize.

Don't

  • Cite without a sources list.
  • Use citations as footnotes for asides; write the aside in the text.
  • Put several pills in a row without text between them; list 1, 2 in one sentence instead.