React QR Code

ImageSettings

These are the properties you can use to customize the image in the QR Code.

PropTypeDescriptionDefaultRequiredPossible Values
src
string
The URI of the embedded image.Yes
width
number
The width, in pixels, of the image.Yes
height
number
The height, in pixels, of the image.Yes
excavate
boolean
Remove the modules around the embedded image.falseNo
true
false
x
number
The horizontal offset of the embedded image, starting from the top left corner.centerNo
y
number
The vertical offset of the embedded image, starting from the top left corner.centerNo
opacity
number
The opacity of the embedded image in the range1No
0-1