next-share
next-share copied to clipboard
Rendered tag and styling
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>
@bja-devs
Thank you for your request. It will be added in next version very soon.
Thank you so much!
Any support yet for styling via classes?