0.0.3 • Published 9 months ago

qr-svelte v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

svelte-qr

QR code generator and scanner for Svelte, based on the libraries qrcode and qr-scanner. Example usage:

<script lang="ts">
  import { Generator, Scanner } from "svelte-qr";
  let lastDetectedCode: string;
</script>
<Generator content="Hello world!" fgColor="#ffff00ff" />
<Scanner on:detected={(e) => {lastDetectedCode = e.detail.data}} />
<p>
  Last detected code: {lastDetectedCode}
</p>

You will find a more detailed documentation in the JSDoc comments for each prop.

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago