[Feature Request] Canvas / img tag output
It would be nice if the returned VDOM could be the SVG data embedded into either a canvas or img, allowing it to be more easily saved as a PNG using native browser interactions
Indeed, this could be a way to use it in PDF generators as well.
Just as a small datapoint, I chose to use this package over others because it did not use canvas or have a lot of extra capabilities. It's the smallest and simplest package I could find to generate an SVG QR code.
Just as a small datapoint, I chose to use this package over others because it did not use canvas or have a lot of extra capabilities. It's the smallest and simplest package I could find to generate an SVG QR code.
Do you have a way to export your SVG?
Do you have a way to export your SVG?
What do you mean by export it? I show it on a website for a 2fa code.
Here is a demo with a button to save the SVG: https://rosskhanas.github.io/react-qr-code/