Slidev add-on qrcode component
npm i @katzumi/slidev-addon-qrcode
Define this package into your slidev addons.
In your slides metadata (using Front Matter):
addons:
- "@katzumi/slidev-addon-qrcode"
Or in your package.json
:
{
"slidev": {
"addons": [
"@katzumi/slidev-addon-qrcode"
]
}
}
You can create a poll by using the QRCode component.
<QRCode
value="https://github.com/k2tzumi/slidev-addon-qrcode"
:width="180"
:height="180"
color="4329B9"
image="83095831.png"
/>
Parameters:
value
(string
) : The date will be encoded to the QR codewidth
(number
, default200
) : Size of canvasheight
(number
, default200
) : Size of canvascolor
(string
, default000000
) : Color code of QR dotsimage
(string
) : The image will be copied to the center of the QR code