An open API service indexing awesome lists of open source software.

https://github.com/wcoder/share-buttons

:+1: Simple, powerful, customizable and super lightweight social buttons for your site
https://github.com/wcoder/share-buttons

buttons hacktoberfest javascript pure-javascript share-buttons social-buttons social-networks webshare

Last synced: about 2 months ago
JSON representation

:+1: Simple, powerful, customizable and super lightweight social buttons for your site

Awesome Lists containing this project

README

          

# Share Buttons [![npm](https://img.shields.io/npm/v/share-buttons.svg)](https://www.npmjs.com/package/share-buttons) ![license](https://img.shields.io/github/license/wcoder/share-buttons.svg)

Simple, powerful, customizable and super lightweight (1 Kb Gzip) social buttons for your site.

## [Demo](https://wcoder.github.io/share-buttons/)

## Browser support

* Google Chrome
* Mozilla Firefox 3.5+
* Opera 10+
* Safari 3.2+
* IE 8+
* Android
* iOS

**Copy to clipboard** is not supported on IE, see [browser compatibility for more information](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#browser_compatibility)

**WebShare API** is only partially supported, see [browser compatibility for more information](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share#browser_compatibility)

## Install

### Available in NPM

```sh
npm i share-buttons
```

include `share-buttons.js` in the end of page:

``` html

```

### Getting the library from CDN

```html

```

Paste this HTML on the page:

``` html


```

Added styles:

``` css
.share-btn > a {
border: 1px solid #ccc;
padding: 5px;
font-size: 12px;
font-family: Verdana, Arial;
}
.share-btn > a:hover {
cursor: pointer;
}
```

Profit!!

## Share via

Network | `data-id`
----------|---------
Facebook | fb
VK | vk
Twitter | tw
Telegram | tg
Pocket | pk
Reddit | re
Evernote | ev
LinkedIn | in
Pinterest | pi
Skype | sk
WhatsApp | wa
Odnoklassniki | ok
Tumblr | tu
Hacker News | hn
Xing | xi
EMail | mail
Print | print
Copy | copy
WebShare API | share

## Customizing

Custom 'url', 'title', 'description':

``` html


```

Styles - full customization.

## Examples

If you are using [Font-Awesome](https://github.com/FortAwesome/Font-Awesome):

```html


```

You can also use [simple-icons](https://github.com/simple-icons/simple-icons).

----

© 2015+ Yauheni Pakala and [contributors](https://github.com/wcoder/share-buttons/graphs/contributors) | MIT