Star Follow @1000ch
GitHub # twitter-button ![GitHub Actions Status](https://github.com/1000ch/twitter-button/workflows/test/badge.svg) Twitter button as Web Components. ## Install Using npm: ```bash $ npm install twitter-button ``` ## Usage Import and register scripts. ```html ``` Just put ``, ``, ``, and `` element in your HTML. ```html ``` ### `TwitterFollowButton` - `width`: number, width of `twitter-follow-button` - `user`: string, Twitter ID to follow - `size`: string, must be either `small` or `large`, default to `small` ### `TwitterHashtagButton` - `width`: number, width of `twitter-hashtag-button` - `text`: string, text to share - `hashtag`: string, hashtag to attach - `size`: string, must be either `small` or `large`, default to `small` ### `TwitterMentionButton` - `width`: number, width of `twitter-mention-button` - `user`: string, Twitter ID to mention - `size`: string, must be either `small` or `large`, default to `small` ### `TwitterShareButton` - `width`: number, width of `twitter-share-button` - `url`: string, URL to share - `user`: string, Twitter ID - `text`: string, text to share - `size`: string, must be either `s` or `l`, default to `s` ## Demo ## License [MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)