https://github.com/jgw96/web-share
Web component built with Stencil that makes the web share api trivial to use.
https://github.com/jgw96/web-share
Last synced: 4 days ago
JSON representation
Web component built with Stencil that makes the web share api trivial to use.
- Host: GitHub
- URL: https://github.com/jgw96/web-share
- Owner: jgw96
- License: mit
- Created: 2017-09-22T04:15:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T04:41:33.000Z (over 7 years ago)
- Last Synced: 2025-03-29T00:34:02.998Z (21 days ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stenciljs - Web Share - share). (List of Awesome Components Made using StencilJS / Individual Components)
README

# web-share
web-share is a web component that makes it super easy to use the [web share api](https://developers.google.com/web/updates/2016/09/navigator-share).
## API
- url(string): the url you want to share to someone
- text(string): text you would like to share
- title(string): the title you would like to share## Using this component
### Usage example
```
share
```### Script tag
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc### Node Modules
- Run `npm install my-name --save`
- Put a script tag similar to this `