@humblejs/share

v1.11.3

Published

Buttons to share link on social media and other channels

Downloads

4

Readme

Share

Buttons to share link on social media and other channels

Demo

Install

yarn add @humblejs/share

Style

Import all styling

@import '@humblejs/share/dist/css/styles.scss';

Props

| Name | Type / Description | Is Required? | Default | |-----------|----------|-------------|-------------| | url | stringURL to share | Yes | | | title | stringTitle of the URL | No | Empty | | excerpt | stringExcerpt from URL (or brief description) | No | Empty | | text | stringDetailed text | No | Empty |

Analytics

You can map GA analytics for share buttons using dist/js/ga.js

import { registerGaEvents, gaEventMap } from `@humblejs/share`;

registerGaEvents();
import { registerGaEvents, gaEventMap as shareButtonsGaEventMap } from `@humblejs/share`;

registerGaEvents({
  eventMap: shareButtonsGaEventMap, // this is default mapping
});