Skip to content

treeder/qr-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A QR code web component, drop it in anywhere.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published