Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 565 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 565 Bytes

qr-code

A QR code web component, drop it in anywhere.

Usage

This uses Lit, so first add Lit to your importmap.

Then you can just use it anywhere:

<script type="module">
import 'https://cdn.jsdelivr.net/gh/treeder/qr-code@0/qr-code.js'
</script>

<qr-code value="SOME VALUE"></qr-code>

Options

These can be passed in as HTML attributes, eg:

<qr-code size="200" value="SOME VALUE"></qr-code>
  • size - sets height and width of the QR image - default: 128