Forces a specific width for the output image. If width is too small to contain the qr symbol, this option will be ignored. Takes precedence over scale.

color.dark

string

#000000ff

❌

Color of dark module. Value must be in hex format (RGBA). Note: dark color should always be darker than color.light.

color.light

string

#ffffffff

❌

Color of light module. Value must be in hex format (RGBA).

💖 Wrap Up

If you think any of the react-hook-qrcode can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.

🌟 Contribution

We'd love to have your helping hand on contributions to react-hook-qrcode by forking and sending a pull request!