A share element that uses Web Share API or shown a fallback to browser that doesn't supports.
npm install @fabriciofmsilva/share-element
import '@fabriciofmsilva/share-element';
<fm-share></fm-share>
- Your website has to be served over HTTPS. To facilitate local development, the API also works when your site is running over localhost.
- To prevent abuse, the API can only be triggered in response to some user action (such as a click event).
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
Browsers without native custom element support require a polyfill.
- Chrome
- Firefox
- Safari
- Microsoft Edge
npm install
npm test
Distributed under the MIT license. See LICENSE for details.