Component has 4 themes and I tried to implement most features available in their demos.
Code: Select all
<pe:social id="socialMedia"
shares="twitter,facebook,pinterest,googleplus,whatsapp,linkedin,email"
url="https://www.primefaces.org/"
text="PrimeFaces"
theme="#{socialMediaController.theme}"
showLabel="#{socialMediaController.showLabel}"
showCount="#{socialMediaController.showCount}"
style="font-size: #{socialMediaController.fontSize}px"
emailTo="primefaces@primefaces.org"
twitterUsername="primefaces"
twitterHashtags="jsf,components,ui"
onclick="console.log('share ' +this.share + ' url ' + this.url + ' at ' + e.timeStamp);"/>