Web component to use the Web Share API, with a fallback to copy to the clipboard.