Bunlong / next-share

Social media share buttons and share counts for your next React apps.
https://next-share.js.org
MIT License
242 stars 34 forks source link

Rendered tag and styling #38

Open jetmiky opened 2 years ago

jetmiky commented 2 years ago

Feature Request

I believe that this library can be enhanced with a custom rendered tag and custom styles.

Currently the rendered tag is button tag with inline styles. It would be great if developers can choose the tag and add a classname.

For example the syntax to be rendered as links and adding styles: <WhatsappShareButton as="a" className={styles.shareButton} styles={{ padding: 16 }}> <FontAwesomeIcon icon={{ prefix: "fab", iconName: "whatsapp }} /> </WhatsappShareButton>

Bunlong commented 2 years ago

@bja-devs

Thank you for your request. It will be added in next version very soon.

Thank you so much!

amberzaragoza commented 11 months ago

Any support yet for styling via classes?