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>
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>