Skip to content

Web component built with Stencil that makes the web share api trivial to use.

License

Notifications You must be signed in to change notification settings

jgw96/web-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Built With Stencil

web-share

web-share is a web component that makes it super easy to use the web share api.

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

<web-share title='web fundamentals' text='Check out Web Fundamentals — it rocks!' url='https://developers.google.com/web'>share</web-share>

Script tag

  • Put a script tag similar to this <script src='https://unpkg.com/web-share@0.0.2/dist/webshare.js'></script> 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 <script src='node_modules/web-share/dist/webshare.js></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install web-share --save
  • Add { name: 'web-share' } to your collections
  • Then you can use the element anywhere in your template, JSX, html etc

About

Web component built with Stencil that makes the web share api trivial to use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published