next-share icon indicating copy to clipboard operation
next-share copied to clipboard

Rendered tag and styling

Open jetmiky opened this issue 3 years ago • 2 comments

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>

jetmiky avatar Nov 24 '21 03:11 jetmiky

@bja-devs

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

Thank you so much!

Bunlong avatar Nov 26 '21 05:11 Bunlong

Any support yet for styling via classes?

amberzaragoza avatar Sep 26 '23 18:09 amberzaragoza