qrcode-svg icon indicating copy to clipboard operation
qrcode-svg copied to clipboard

Feature request: position & css var's for fill color

Open SunboX opened this issue 1 year ago • 0 comments

It would be great, if we could do something like this:

QRCode({
    msg: 'xxxxxxxxxxxxx',
    dim: 120,
    pal: ['var(--primary-color)', 'var(--secondary-color)'],
    x: 123,
    y: 45
})

that will result in:

<svg x="123" y="45" viewBox="0 0 37 37" width="120" height="120" fill="var(--primary-color)" ...

SunboX avatar Feb 09 '24 21:02 SunboX