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

Author Bio

Author card at the end of an article, with a follow button. Pro · Content and social › Reading and author

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add author-bio
npm install valyro-ui-pro

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

Props

PropTypeDefault
name *stringAuthor's name.
positionReactNodePosition or beat: "Senior reporter, technology".
avatarSrcstringPortrait; initials stand in without it.
bioReactNodeA few sentences about the author.
hrefstringAuthor page: the name links to it, and an "All articles" link appears.
articleCountnumberNumber of published pieces.
linksAuthorBioLink[][]Profiles and contacts: social accounts, email, a newsletter.
followingbooleanThe reader follows the author (controlled). Pass it, defaultFollowing or onFollowingChange to show the Follow button.
defaultFollowingbooleanInitial following when uncontrolled.
onFollowingChange(following: boolean) => voidCalled with the new following when it changes.
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the author's name (default 2).
variant'card' | 'plain''card'card: a framed panel (default); plain: a divider above, for the end of an article.
localestringBCP 47 locale for numbers and dates; defaults to the ThemeProvider's, then the browser's.
labelsPartial<AuthorBioLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • 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
  • 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 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: Share Bar · Next: Article Card · All Content and social