Skip to content
Viewership Inquire
UI Components

Citation List.

The sources behind an AI answer: numbered rows with domain, engines that cited each page, and your own pages marked.

AgentComponentNo dependencies Original, MIT

.md

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy CitationList.astro

    Paste into src/components/viewership/citation-list/

  3. Use it

    Page.astro
    ---
    import CitationList from "../components/viewership/citation-list/CitationList.astro";
    ---
    
    <CitationList />

Props 3

PropTypeDefaultDescription
sources { title: string; url: string; engines?: string[] }[] · Cited pages, in citation order.
heading string "Sources" Label above the list.
own string · Your domain. Matching rows and subdomains get a "Yours" pill and an accent monogram.

Source 1 file

Original, MIT.