A Svelte wrapper around QRious, a qr code generator
npm install @phippsytech/svelte-qrious bash
$ npm i @phippsytech/svelte-qrious
`Usage
` html
`Settings
You can control many aspects of the QR code using the following attributes:| Field | Type | Description | Default |
| --------------- | ------- | -------------------------------------------------- | ------------- |
| background | String | Background color of the QR code |
"white" |
| backgroundAlpha | Number | Background alpha of the QR code | 1.0 |
| foreground | String | Foreground color of the QR code | "black" |
| foregroundAlpha | Number | Foreground alpha of the QR code | 1.0 |
| level | String | Error correction level of the QR code (L, M, Q, H) | "H" |
| padding | Number | Padding for the QR code (pixels) | null (auto) |
| size | Number | Size of the QR code (pixels) | 100 |
| value | String | Value encoded within the QR code | "" |
`HTML
value="https://github.com/phippsytech/svelte-qrious"
background="green"
backgroundAlpha=0.8
foreground="blue"
foregroundAlpha=0.8
level="H"
padding=25
size=500
/>
``QRious
Copyright © 2017 Alasdair Mercer
Copyright © 2010 Tom Zerucha
See LICENSE.md for more information on our GPLv3 license.