Movatterモバイル変換


[0]ホーム

URL:


⚠️

Security Update: npm classic token creation is now disabled. Existing classic tokens will be revoked onNovember 19, 2025. Migrate to trusted publishing or granular access tokens to avoid disruption.Learn more.

@svelte-put/qr
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

npm.badgebundlephobia.badgedocs.badgerepl.badge

Render QR asimg orsvg, optionally with logo

svelte-put

This package is part of the@svelte-put family. For contributing guideline and more, refer to itsreadme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

Given one of the following usage

<script>// as imgimport{qrasimgQR}from'@svelte-put/qr/img';importImgQRfrom'@svelte-put/qr/img/QR.svelte';// as svgimport{qrassvgQR}from'@svelte-put/qr/svg';importSvgQRfrom'@svelte-put/qr/svg/QR.svelte';constdata='https://svelte-put.vnphanquang.com/docs/qr';constlogo='https://svelte-put.vnphanquang.com/images/svelte-put-logo.svg';</script><!-- svg using component --><SvgQR{data}{logo}/><!-- svg using action --><svguse:svgQR="{{"data,logo}}/><!-- img using component --><ImgQR{data}{logo}/><!-- img using action --><imguse:imgQR="{{"data,logo}}/>

The rendered QR will be similar to this:

qr

Provenance

Share feedback

Package Sidebar

Install

npm i @svelte-put/qr

Weekly Downloads

5,935

Version

2.1.1

License

MIT

Unpacked Size

30.8 kB

Total Files

21

Last publish

Collaborators

  • vnphanquang

[8]ページ先頭

©2009-2025 Movatter.jp