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
- Host: GitHub
- URL: https://github.com/1000ch/social-button
- Owner: 1000ch
- License: mit
- Archived: true
- Created: 2015-01-20T10:13:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T05:47:58.000Z (over 5 years ago)
- Last Synced: 2025-10-13T22:31:31.395Z (8 months ago)
- Topics: facebook, twitter, web-components
- Language: TypeScript
- Homepage: https://1000ch.github.io/social-button/
- Size: 201 KB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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 [](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)