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

https://github.com/1000ch/social-button

Social Buttons as Web Components
https://github.com/1000ch/social-button

facebook twitter web-components

Last synced: 8 months ago
JSON representation

Social Buttons as Web Components

Awesome Lists containing this project

README

          

🚨 Please use [`twitter-button`](https://github.com/1000ch/twitter-button) and [`facebook-button`](https://github.com/1000ch/facebook-button) instead.

# social-button [![devDependency Status](https://david-dm.org/1000ch/social-button/dev-status.svg)](https://david-dm.org/1000ch/social-button?type=dev)

Social Buttons as Web Components.

## Install

Using npm:

```bash
$ npm install social-button
```

## Usage

Import and register scripts.

```html

import { TwitterButton, FacebookButton } from 'https://unpkg.com/social-button';

customElements.define('twitter-button', TwitterButton);
customElements.define('facebook-button', FacebookButton);

```

## Twitter Button

```html

```

- `type` **follow** / **share** / **hashtag** / **mention**
- `width`
- `height`
- `user`
- `text`
- `hashtag`

## Facebook Button

```html

```

- `layout` **standard** / **box_count**
- `width`
- `height`
- `href` URL to like or share.

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)