Wrote an article
Used Svelte
Just dropped a new post taking you through how to roll-your-own sharing in your ❤️ Svelte app with Web Share API support as a progressive enhancement.

Includes fallbacks for Facebook, Telegram, Twitter & WhatApp share APIs.

Hope you find it useful!

https://rodneylab.com/svelte-share-buttons/