share() hands the reader's share sheet this page: its title, its description and its address. Where a browser has none, the link is copied and a toast says so. What a link shows in a chat fills itself in from the app line, the route and share.png beside the entry.
The share sheet
On a phone, share() opens the system's sheet: Messages, Mail, AirDrop and the rest. It needs a press.
share()The page as it stands: this route's title and description, and its own address. Cancelled is not a failure; with no sheet the link is copied.
not yet
On a desktop with no share sheet the link is copied: paste it into a chat to see its preview, this route's own.
share({title, text, url})Any of them said by the page itself: a thing in the app, by its own address. files: [picked] shares a file where the sheet takes one.
What a link shows
Nothing to write in the HTML: the app line, the routes and a picture by its name.
A route's own titleWhile this route is shown the tab says its title. The back end answers /batteries/share with this route's tags, so a link to it previews as this page.
playground.motelang.comShare · Mote playgroundshare() and a route's own title: what a phone's share sheet and a link's preview show.