Web Share API


```typeif (navigator.share) {  navigator.share({    title: 'web.dev',    text: 'Check out web.dev.',    url: 'https://web.dev/',  })    .then(() => console.log('Successful share'))    .catch((error) => console.log('Error sharing', error));}```





> [Integrate with the OS sharing UI with the Web Share API](https://web.dev/web-share/)





