ValyroUI Русская версия

Citation Evidence Lens

Highlights claims by how well they are supported, with sources for each. Pro · Content and social › Facts and sources

A text with its claims highlighted by how well they are backed: verified, sourced, disputed, outdated or unsupported. Opening a claim shows its sources, the passages that relate to it, an editor's note and the model's confidence — clearly labelled as an estimate, never as a fact check.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add citation-evidence-lens
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { CitationEvidenceLens } from 'valyro-ui-pro';

Props

PropTypeDefault
content *stringThe text. Blank lines separate paragraphs; claims are found in it by their quote.
claims *EvidenceClaim[]Statements to check, each with its status and sources.
sources *EvidenceSource[]Everything the claims cite, by id.
onOpenSource(source: EvidenceSource, claim: EvidenceClaim) => voidCalled when the reader opens a source (alongside the link, when the source has a url).
confidence'show' | 'hide''show'Show the model's confidence estimate (labelled as an estimate, not a check). Default show.
activeClaimIdstring | nullClaim whose evidence is open. null: the overview.
defaultActiveClaimIdstring | nullnullInitial open claim when uncontrolled.
onActiveClaimIdChange(id: string | null) => voidCalled when the reader opens, switches or closes a claim.
highlight'all' | 'issues' | 'none'Which claims are highlighted: every one, only those that need attention, or none (plain reading).
defaultHighlight'all' | 'issues' | 'none''all'Initial highlight mode when uncontrolled. Default all.
onHighlightChange(highlight: CitationHighlight) => voidCalled when the reader switches the highlight mode.
loadingbooleanfalseThe text and evidence are loading: skeleton lines.
errorReactNodeLoading failed: shown instead of the text.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
timeZonestringIANA time zone of source dates (default: the ThemeProvider's, then the reader's).
localestringBCP 47 locale for dates and numbers; defaults to the ThemeProvider's.
labelsPartial<Omit<CitationEvidenceLensLabels, 'statuses' | 'statusHints'>> & { statuses?: Partial<Record<ClaimStatus, string>>; statusHints?: Partial<Record<ClaimStatus, string>>; }Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • Source Dossier — Source dossier: verification status, linked facts, source types, print
  • Correction Ledger — Correction history: what changed, when and why, with a word-level diff
  • Interactive Quote Deck — Quotes with the primary source, context, original wording and attributed sharing
  • Article Header — Article header: section, headline, lede, authors and date
  • Byline — Byline: authors, published and updated dates, reading time
  • Article Figure — Image with caption and photo credit
  • Pull Quote — Pull quote with attribution
  • Key Points — “Key points” summary block
  • Editor Note — Update, correction, disclosure and sponsored-content notes
  • Article Toc — Article table of contents that tracks the current section
  • Reading Progress — Reading progress bar
  • Share Bar — Share: Telegram, VK, X, WhatsApp, email and copy link

Previous: Article Comments · Next: Source Dossier · All Content and social