Comments (1)
I'm using Next.js here but hopefully this will help you with using local images in your QR logo.
Simply store your image in the public folder, and just set the src to "team_logo.png", no need for specifying the directory.
Alternatively, what you can do is import the image first such as:
import TeamLogo from "./team_logo.png";
and then in the "src" property, set it to TeamLogo.src, like the following:
...
imageSettings={{
src: TeamLogo.src,
...
}}
...
All these work for me in Next.js 13.
from qrcode.react.
Related Issues (20)
- How to add some text in qr code HOT 3
- Set Excavate to Numerical Value HOT 1
- NVDA screen reader does not detect QR code SVG HOT 3
- 3.1.0 has no `marginSize` prop in `QRProps` HOT 2
- How do I show the loading status before the QR code comes out? HOT 1
- Named export 'QRCodeSVG' not found. HOT 1
- QR Code Unscannable When Length Exceeds Certain Characters HOT 1
- Making the qrcode size percentage based HOT 2
- No option to provide version HOT 3
- TS: `QRCodeCanvas` and `QRCodeSVG` are not typed as React components HOT 1
- Add margin around the image?
- marginSize still not available? HOT 2
- Improve Accessibility support HOT 5
- Qr Scaning issue
- QR Logo prevents from using the QR link HOT 3
- How to detect after how many characters the QR Code will not work? HOT 1
- useRef and download solution (temporary)
- How to know if the user scan the QR code or not ? HOT 1
- `level` prop type is string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcode.react.