Correction Ledger
Correction history: what changed, when and why, with a word-level diff. Pro · Content and social › Facts and sources
The public record of what changed in a piece after it was published: corrections, clarifications, updates and retractions in time order, each with its reason, author and the exact words that changed. Changes that alter the meaning are marked and open by default.
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add correction-ledger
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { CorrectionLedger } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
entries * | CorrectionEntry[] | Every change after publication. | |
published | DateInput | When the piece was first published: the start of the ledger. | |
order | 'newest' | 'oldest' | 'newest' | Reading order. Default newest. |
expanded | string[] | Ids of entries whose change is shown. | |
defaultExpanded | string[] | Initial open entries when uncontrolled. Default: major changes. | |
onExpandedChange | (expanded: string[]) => void | Called when the reader opens or closes an entry's change. | |
loading | boolean | false | The history is loading: skeleton. |
error | ReactNode | Loading failed: shown instead of the ledger. | |
title | ReactNode | Heading. Default: labels.title. | |
headingLevel | 2 | 3 | 4 | 5 | 3 | Level of the heading (default 3). |
timeZone | string | IANA time zone of the times (default: the ThemeProvider's, then the reader's). | |
locale | string | BCP 47 locale for dates; defaults to the ThemeProvider's. | |
labels | Partial<Omit<CorrectionLedgerLabels, 'kinds'>> & { kinds?: Partial<Record<CorrectionKind, string>> } | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Citation Evidence Lens — Highlights claims by how well they are supported, with sources for each
- Source Dossier — Source dossier: verification status, linked facts, source types, print
- 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: Source Dossier · Next: Interactive Quote Deck · All Content and social