Skip to content

kriss-kross-io/social-share-buttons

 
 

Repository files navigation

<social-share-buttons>

Installation

bower install social-share-buttons --save

Usage

<link rel="import" href="bower_components/social-share-buttons/social-share-buttons.html">

<social-share-buttons media="https://my-domain.com/images/my-image.jpg" url="https://my-domain.com/product/detail/my-sku" title="Product Name">
   <span class="icon-social-facebook" data-id="facebook"></span>
   <span class="icon-social-twitter" data-id="twitter"></span>
   <span class="icon-social-pinterest" data-id="pinterest"></span>
</social-share-buttons>

Setup

Prerequisites

Install npm (or install Node):

curl -L https://www.npmjs.com/install.sh | sh

Install bower:

npm install -g bower

Tools

Install polymer-cli:

npm install -g polymer-cli

Start the development server

This command serves the app at http://localhost:8080/components/social-share-buttons/ and provides basic URL routing for the app:

polymer serve