Web Component wrapper for Twitter's button using Polymer.
-
Import Web Components' polyfill:
```
-
Import Custom Element:
-
Start using it!
```
Attribute | Options | Default | Description |
---|---|---|---|
text |
string | Custom Elements rocks! |
The text displayed on the tweet |
type |
share , follow , hashtag , mention |
share |
The type of button |
href |
string | http://customelements.io |
The URL displayed on the tweet |
user |
string | zenorocha |
The user displayed on the tweet and in the @mention |
hashtag |
string | customelements |
The hashtag displayed on the tweet |
height |
int | 25 |
The height of the button |
width |
int | 115 |
The width of the button |
See Twitter's official documentation.
IE 10+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Check Release list.
MIT License © Zeno Rocha