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

Interactive Quote Deck

Quotes with the primary source, context, original wording and attributed sharing. Pro · Content and social › Facts and sources

Quotes that can be checked: each one with the speaker, the primary source (and the moment in a recording), the context around it and the original wording of a translation. Sharing copies the quote together with its source, never the words alone.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add interactive-quote-deck
npm install valyro-ui-pro

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

Props

PropTypeDefault
quotes *DeckQuote[]Quotes in reading order, each with its speaker and primary source.
activenumberIndex of the quote shown.
defaultActivenumber0Initial quote when uncontrolled. Default 0.
onActiveChange(index: number) => voidCalled when the reader moves to another quote.
onShare(quote: DeckQuote, method: QuoteShareMethod) => voidCalled after a share action, e.g. for analytics.
shareUrlstringBase of the permalink copied by "Copy link" (#quote-<id> is appended). Default: the page address.
loadingbooleanfalseData is loading: skeleton.
errorReactNodeLoading failed: shown instead of the deck.
titleReactNodeHeading above the deck.
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; defaults to the ThemeProvider's.
labelsPartial<InteractiveQuoteDeckLabels>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
  • Correction Ledger — Correction history: what changed, when and why, with a word-level diff
  • 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: Correction Ledger · Next: Post Card · All Content and social