Skip to content

dwestbrooks/qr-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<qr-code>

Web Component wrapper for generating QR Codes, using qrjs lib.

Maintained by Eduard C..

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130905/polymer.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/qr-code.html">
  3. Import qrjs lib:

    <script src="src/qr.js"></script>
  4. Start using it!

    <qr-code data="hello world!"></qr-code>

Options

Attribute Options Default Description
data string undefined The information encoded by the QR code
format png, html png Format of the QR code rendered inside the component.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

License

MIT License

About

Web Component for generating QR codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published