@base-cms/marko-web-social-sharing

Social Sharing Marko/Vue components for BaseCMS websites

Usage no npm install needed!

<script type="module">
  import baseCmsMarkoWebSocialSharing from 'https://cdn.skypack.dev/@base-cms/marko-web-social-sharing';
</script>

README

BaseCMS Marko Web Social Sharing Components

Installation

  1. Include @base-cms/marko-web-social-sharing as a project/website dependency.

  2. Include the Browser plugin.

// your-site/browser/index.js
import SocialSharing from '@base-cms/marko-web-social-sharing/browser';

SocialSharing(Browser);
// ...

export default Browser;
  1. Include the default styles:
@import "../../node_modules/@base-cms/marko-web-social-sharing/scss/buttons";

Usage

Include the sharing component where you'd like the icons to appear:

<marko-web-social-sharing
  path=content.siteContext.path
  providers=["email", "facebook", "linkedin", "twitter", "pinterest", "print"]
/>