Demos / Web Share
Open the system share sheet.
On iPadOS, navigator.share() hands control to the same
sheet you'd get by tapping Safari's Share button — AirDrop, Messages,
Mail, Notes, every third-party share extension.
Checking…
Pressing one of the buttons makes Safari open the native sheet. The buttons don't transmit anywhere — the share target is whatever you pick.
Code
await navigator.share({
title: "iPadOS Safari Showcase",
text: "Look at this neat demo.",
url: location.href,
});
For files, you build a File from a Blob and pass it as
files. We call navigator.canShare({ files: [f] })
first because not every share target accepts files.