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

export the functions creating the share urls

Open tttp opened this issue 1 year ago • 1 comments

Could it be possible to export a shareLink(socialmedia, options) function that build the url required by each social media?

eg

shareLink ("twitter", {url: https://github.com/next-share, text: "next-share is a social share..."}) or
twitterLink ({url...})

would return

https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fnext-share&text=next-share is a social share buttons for your next React apps.

the functions building the urls for the various social media (eg twitterLink) are already there, the issue is that they aren't exposed/exported by your library

tttp avatar Aug 07 '23 15:08 tttp