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

Article Header

Article header: section, headline, lede, authors and date. Pro · Content and social › Article

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add article-header
npm install valyro-ui-pro

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

Props

PropTypeDefault
title *ReactNodeHeadline of the article.
kickerReactNodeRubric or story label above the headline: "Analysis", "Exclusive".
kickerHrefstringSection page the kicker links to.
dekReactNodeStandfirst: one or two sentences under the headline that sum the story up.
authorsArticleAuthor[][]Writers in the byline.
publishedDateInputPublication date.
updatedDateInputLast substantive update.
readingMinutesnumberEstimated reading time in minutes.
mediaReactNodeLead image or video under the byline, e.g. an ArticleFigure.
align'start' | 'center''start'center for features and long reads; start for news (default).
headingLevel1 | 2 | 3 | 4 | 5 | 61Level of the headline (default 1).
timeZonestringIANA time zone of the dates 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<ArticleHeaderLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • 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
  • Author Bio — Author card at the end of an article, with a follow button
  • Article Card — News card: vertical, horizontal and over a photo
  • Live Blog — Live blog: update feed, pinned and key events
  • Breaking News — “Breaking” banner with rotating headlines

Previous: Subscription Plan Simulator · Next: Byline · All Content and social