
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
react-web-share
Advanced tools
Tiny Web Share API Wrapper with fallback for unsupported browsers
Tiny Web Share API wrapper with fallback for unsupported browsers
💡 most browsers restricts web share api only to https websites
npm i react-web-share # npm
yarn add react-web-share # yarn
import React, { useState } from "react";
import { RWebShare } from "react-web-share";
const Example = () => {
return (
<div>
<RWebShare
data={{
text: "Like humans, flamingos make friends for life",
url: "https://on.natgeo.com/2zHaNup",
title: "Flamingos",
}}
onClick={() => console.log("shared successfully!")}
>
<button>Share 🔗</button>
</RWebShare>
</div>
);
};
export default Example;
Prop | Description | Type | Default |
---|---|---|---|
data | Share Object | {text, url, title} | {text: "", url: currentURL, title: "Share"} |
sites | sites | string[] | all platforms (see list below for key list) |
closeText | translate close | string | localise close text |
onClick | callback on sucessful share | ||
disableNative | disables native share | boolean | false |
MIT © harshzalavadiya
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.