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

export the functions creating the share urls #101

Open tttp opened 1 year ago

tttp commented 1 year ago

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

lluz commented 3 weeks ago

That would be very useful