@solid-integrations/qrcode-generator
v0.0.100
Published
An integration with qrcode-generator
Downloads
367
Readme
@solid-integrations/qrcode-generator
An integration with qrcode-generator
for generating qr code data URLs:
makeQRCode
- Generates a QR Code Data URL.createQRCode
- Generates a memo containing the Data URL.
Installation
npm install @solid-integrations/qrcode-generator
# or
yarn add @solid-integrations/qrcode-generator
# or
pnpm add @solid-integrations/qrcode-generator
How to use it
makeQRCode
Synchronously generates a data URL for a QR Code containing the given string
const qrCode = makeQRCode("Hello World");
createQRCode
Returns a memo with the data URL for a QR Code
const [str, setStr] = createSignal("");
const qrCode = createQRCode(str); //The value of qrCode will reactively update when `str` changes.
Changelog
See CHANGELOG.md