5.0.0 • Published 8 months ago
@288-toolkit/shares v5.0.0
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.