4.0.1 • Published 12 days ago
@288-toolkit/shares v4.0.1
Shares
npm i @288-toolkit/shares
A collection of functions and actions to work implement social shares.
nativeShare
A Svelte action that adds a click event listener that calls the native share API.
Events
nativesharesunsupported
: Dispatched when native shares are not supported by the device.
copy
A re-export of svelte-copy
createFacebookShareUrl()
Create a Facebook share URL
createTwitterShareUrl()
Create a Twitter share URL
createMailShareUrl()
Creates a mailto URL with the given parameters.