Skip to content

useQRCode

Category
Export Size
205 B
Package
@reause/integrations
Last Changed
5 days ago

Wrapper for qrcode.

Demo

Install

bash
npm i qrcode@^1

Usage

tsx
import { 
useQRCode
} from '@reause/integrations'
// `qrcode` is the data URL, `''` until the first encode resolves const
qrcode
=
useQRCode
('text-to-encode')

Type Declarations

ts
export function useQRCode(text: string, options?: QRCode.QRCodeToDataURLOptions): string

Source

Source · Demo · VueUse

Contributors

hairyf

Changelog

v0.1.0 on
838db - fix(integrations): resolve useQRCode audit findings (#806)
0f0db - feat(integrations): add useQRCode (#193)

Released under the MIT License. v0.1.8