Batteries
Share
Accent
Scheme
Backdrop motion
Batteries

Share

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.
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25