Skip to content

Generate from QR Code with style, logo, and Error Level Rate that serve to avoid errors if the QR Code is damaged.

Notifications You must be signed in to change notification settings

JonasJs/svelte-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svelte-qrcode

npm version License: MIT

QR Code generator for Svelte & SvelteKit with style, logo, and Error Level Rate that serve to avoid errors if the QR Code is damaged.

Installation

npm i svelte-qrcode
// OR
yarn add svelte-qrcode

Demo Link

image

Local demo:

git clone https://github.com/JonasJs/svelte-qrcode.git
cd svelte-qrcode
yarn install && yarn start

Examples

An example of how to use the library:

Example Repl

<script>import QrCode from "svelte-qrcode"</script>
<div class="container">
  <QrCode value="https://github.com/" />
</div>

Properties

You can control many aspects of the QR code using the following props:

Prop Type Description Default
background String Background color of the QR code "#FFFFFF"
color String Foreground color of the QR code "#000000"
errorCorrection String Error correction level of the QR code (L, M, Q, H) "L"
padding Number Padding for the QR code (pixels) 0
size Number Size of the QR code (pixels) 200
value String Value encoded within the QR code ""

NPM Statistics

Download stats for this NPM package

NPM

License

Svelte Adress Autocomplete is open source software licensed as MIT.

About

Generate from QR Code with style, logo, and Error Level Rate that serve to avoid errors if the QR Code is damaged.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published