Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.44 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.44 KB

<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