AsterUIDocsv1.0.2

Docs / Component reference

CitationBadge & SourceList

Put a source marker next to the claim it supports. Pair the marker with a source list so readers can follow it.

Citation badge example

Install

sh
npx @fierst/ui@1.0.2 add citation-badge

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/citation-badge: CitationBadge, SourceList.

Download the registry source for citation-badge 1.0.2.

API contracts

ts
export function CitationBadge({
  index,
  href,
  title,
}: {
  index: number;
  href?: string;
  title?: string;
})

export function SourceList({
  sources,
  class: extraClass,
}: {
  sources: readonly { title: string; href: string }[];
  class?: string;
})