useShare
Native Web Share API caller.
1.1 KB
•Updated on September 3, 2026
Installation
Bash
pnpm dlx shadcn@latest add @spaceui/hooks-browser-use-shareUsage
Code
import { useShare } from '@/hooks/use-share'
const { share, isSupported } = useShare()API Reference
Parameters / Props
None
Return Value
| Property | Type | Description |
|---|---|---|
share | (data) => Promise<void> | Triggers share dialog. |
isSupported | boolean | Feature support. |