Documentation
Composables
Use the same registry and action states in your own interface.
useShare
The composable is SSR-safe and only reads browser APIs when an action runs.
const share = useShare(() => payload_share)
await share.execute('bluesky')
await share.copy()
await share.native()
console.log(share.status.value)
console.log(share.message.value)Result states
Actions resolve to copied, shared, opened, cancelled, blocked, unsupported, or failed. They do not hide pop-up blockers or missing browser APIs.