Share Menu
Share menu to copy a link or post to X, LinkedIn, and the native share sheet.
Features
- Copy the link to the clipboard with toast feedback.
- Share directly to X and LinkedIn in a new tab.
- Resolves relative URLs against the current origin.
- Shows the native share option only when the Web Share API is available.
Installation
Install-Module cnpx -Scope CurrentUser -Force; Import-Module cnpx; cnpx add @chadnpc/share-menuUsage
import { ShareMenu } from "@/components/share-menu"<ShareMenu title="chadnpc.com" url="https://chadnpc.com" />