2.1.0 • Published 7 months ago
@svelte-put/qr v2.1.0
@svelte-put/qr
Render QR as img
or svg
, optionally with logo
svelte-put
This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.
Usage & Documentation
See the dedicated documentation page here.
Quick Start
Given one of the following usage
<script>
// as img
import { qr as imgQR } from '@svelte-put/qr/img';
import ImgQR from '@svelte-put/qr/img/QR.svelte';
// as svg
import { qr as svgQR } from '@svelte-put/qr/svg';
import SvgQR from '@svelte-put/qr/svg/QR.svelte';
const data = 'https://svelte-put.vnphanquang.com/docs/qr';
const logo = 'https://svelte-put.vnphanquang.com/images/svelte-put-logo.svg';
</script>
<!-- svg using component -->
<SvgQR {data} {logo} />
<!-- svg using action -->
<svg use:svgQR="{{" data, logo }} />
<!-- img using component -->
<ImgQR {data} {logo} />
<!-- img using action -->
<img use:imgQR="{{" data, logo }} />
The rendered QR will be similar to this:
Changelog
2.1.0
7 months ago
2.0.0
8 months ago
2.0.0-next.6
10 months ago
2.0.0-next.4
11 months ago
2.0.0-next.5
11 months ago
2.0.0-next.2
1 year ago
2.0.0-next.3
1 year ago
2.0.0-next.0
1 year ago
2.0.0-next.1
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago