Web Component wrapper for Twitter's share button using Polymer.
Maintained by Zeno Rocha.
-
Import Web Components' polyfill:
<script src="lib/polymer.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/twitter.html">
-
Start using it!
<twitter></twitter>
Attribute | Options | Default | Description |
---|---|---|---|
text |
string | Custom Elements rocks! |
The text displayed on the tweet |
type |
share , follow |
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 |
height |
int | 25 |
The height of the button |
width |
int | 115 |
The width of the button |
lang |
string | en |
The display language |
See Twitter's official documentation.
- 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
- Add support for Hashtag button
- Add support for Mention button
- v0.1.2 August 20, 2013
- Added support for display languages
- v0.1.1 August 20, 2013
- Added support for Follow button
- v0.1.0 August 20, 2013
- Initial development release
- v0.0.1 August 19, 2013
- Started project using boilerplate-element