Web Share API allows web apps to implement sharing functionality using the device's native sharing capabilities instead of having to resort to scripts from the individual sharing platforms.
https://nectar.website/demo/web-apis/web-share/arrow-up-right
You can refer to the code present in /partials/web-apis/web-share.html file and use it accordingly.
/partials/web-apis/web-share.html
If Web Share API is not supported, then you can use third-party social sharing libraries as fallback.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_APIarrow-up-right
Last updated 2 years ago