Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
react-web-share-button
Advanced tools
Share button that is using the Web Share API with fallback for browsers that do not support it
React Share Button Component that uses the Web Share API with fallback
import ShareButton from 'react-web-share-button';
<ShareButton title="My Great Page" text="A really great page" url="http://www.greatpage.com" />
Name | Description |
---|---|
buttonText | Text or Node that is used on the Share button |
buttonStyle | Inline styles for the Button |
fallbackContainerStyles | Inline styles for the fallback container |
fallbackContainerOnShowStyles | Inline styles for the fallback container when it becames visible |
target | Where to open url in case of the fallback dialog |
fallbackButtonStyle | Inline styles for the fallback buttons |
url | Url to share |
onSuccess | Called when the share is successful, only in case where Web Share API is supported |
onError | Called when the share is not successful, only in case where Web Share API is supported |
text | Text that is used by the Web Share API |
title | Title that is used by the Web Share API |
FAQs
Share button that is using the Web Share API with fallback for browsers that do not support it
The npm package react-web-share-button receives a total of 42 weekly downloads. As such, react-web-share-button popularity was classified as not popular.
We found that react-web-share-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.