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

Share Bar

Share: Telegram, VK, X, WhatsApp, email and copy link. Pro · Content and social › Reading and author

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add share-bar
npm install valyro-ui-pro

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

Props

PropTypeDefault
urlstringAddress being shared (default: the page's canonical URL, else its address without query and hash).
titlestring''Headline sent along where the network accepts text.
targetsShareTarget[]DEFAULT_TARGETSButtons, in order (default: telegram, vk, x, whatsapp, email, copy).
variant'icon' | 'label''icon'icon: square icon buttons with the theme's button radius (default); label: icon and network name.
orientation'horizontal' | 'vertical''horizontal'vertical for a rail beside the article.
showTitlebooleanfalseShows the "Share" title before the buttons.
onShare(target: ShareTarget) => voidCalled when a reader picks a target (before the share window opens), e.g. for analytics.
labelsPartial<ShareBarLabels>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
  • Author Bio — Author card at the end of an article, with a follow button
  • 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: Reading Progress · Next: Author Bio · All Content and social