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

Live Blog

Live blog: update feed, pinned and key events. Pro · Content and social › Feed and news

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add live-blog
npm install valyro-ui-pro

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

Props

PropTypeDefault
entries *LiveBlogEntry[]Updates in any order; they are shown newest first (or oldest first with order="oldest").
titleReactNodeTitle of the coverage, above the timeline.
livebooleantrueCoverage is ongoing: a pulsing "Live" tag; false shows "Coverage ended".
pendingCountnumber0Updates that arrived but are not shown yet; renders a "N new updates" button.
onShowPending() => voidCalled when the reader asks for the pending updates.
hasMorebooleanfalseEarlier updates can be loaded: shows a "Show earlier updates" button after the timeline.
onLoadMore() => voidCalled by that button.
loadingMorebooleanfalseThe earlier updates are loading: the button shows a spinner.
order'newest' | 'oldest''newest'Reading order of the timeline (default newest first).
entryIdPrefixstring'update-'Prefix of each update's id (default "update-"), for permalinks: #update-<entry id>.
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the title (default 2); entry titles take the next level.
timeZonestringIANA time zone of the times shown, e.g. "Europe/Moscow" (default: the ThemeProvider's, then the reader's). Set it, here or on the provider, when rendering on the server, so the server and the browser print the same time.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<LiveBlogLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • Article Card — News card: vertical, horizontal and over a photo
  • Breaking News — “Breaking” banner with rotating headlines
  • Article Comments — Article comments: votes, sorting, replies, moderation
  • 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 Card · Next: Breaking News · All Content and social