Citation Evidence Lens
Подсветка утверждений по степени подтверждения и источники к каждому. Pro · Контент и соцсети › Факты и источники
Установка
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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
content * | string | The 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) => void | Called 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. |
activeClaimId | string | null | Claim whose evidence is open. null: the overview. | |
defaultActiveClaimId | string | null | null | Initial open claim when uncontrolled. |
onActiveClaimIdChange | (id: string | null) => void | Called 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) => void | Called when the reader switches the highlight mode. | |
loading | boolean | false | The text and evidence are loading: skeleton lines. |
error | ReactNode | Loading failed: shown instead of the text. | |
title | ReactNode | Heading. Default: labels.title. | |
headingLevel | 2 | 3 | 4 | 5 | 3 | Level of the heading (default 3). |
timeZone | string | IANA time zone of source dates (default: the ThemeProvider's, then the reader's). | |
locale | string | BCP 47 locale for dates and numbers; defaults to the ThemeProvider's. | |
labels | Partial<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. |
Похожие компоненты
- Source Dossier — Досье источников: статус проверки, факты со ссылками, виды источников, печать
- Correction Ledger — Хронология правок материала: что изменено, когда и почему, с пословным сравнением
- Interactive Quote Deck — Цитаты с первоисточником, контекстом, оригиналом перевода и шарингом с атрибуцией
- Article Header — Шапка статьи: рубрика, заголовок, лид, авторы и дата
- Byline — Подпись: авторы, дата публикации и обновления, время чтения
- Article Figure — Иллюстрация с подписью и автором фото
- Pull Quote — Выносная цитата с атрибуцией
- Key Points — Блок «Главное» с ключевыми тезисами
- Editor Note — Обновление, исправление, раскрытие и пометка о спонсорстве
- Article Toc — Оглавление статьи с подсветкой текущего раздела
- Reading Progress — Полоса прогресса чтения
- Share Bar — Поделиться: Telegram, VK, X, WhatsApp, почта и копирование ссылки
Назад: Article Comments · Далее: Source Dossier · Весь раздел «Контент и соцсети»