<share-tools
share-title="Share This!"
share-url="//example.org/share-me"
data-track-category="Super Cool Category"
data-track-action="Share" [0]
>
<h1>Special Custom Share Message</h1> [1]
<share-via-facebook icon label></share-via-facebook>
<share-via-twitter icon label twitter-handle="theonion"></share-via-twitter>
<share-via-email icon label message="via theonion.com"></share-via-email>
</share-tools>
[0] The data-track-*
attributes have nothing to do with the share tools, other page-wide javascript interpret them for their own purposes.
Huge interop win comes from just using dom elements here. Don't even have to consider the compatability story.
[1] Any html goes inside here. Very flexible for handling our incoming designs.
Easy to use, low training threshold.
The biggest hurdle for getting everybody on board was explaining that: Yes, you can just add a class attribute to these to restyle them.
<share-tools class="footer-share-tools">
<share-via-facebook icon class="footer-share-via-facebook"></share-via-facebook>
</share-tools>