QR Code component is used for providing information or links to users which they can quickly scan with their smartphone.
<nord-input value="https://nordhealth.design" label="Value"></nord-input>
const qrCode = document.querySelector("nord-qrcode")
const input = document.querySelector("nord-input")
input.addEventListener("input", () => (qrCode.value = input.value))
The value of the QR Code, most commonly an URL.
Label used by assistive technology. If unspecified, the value will be used instead.
The size of the rendered QR Code in pixels.
The fill color of the QR Code. Can accept any valid CSS color value, including custom properties.
The background color of the QR Code. Can accept any valid CSS color value, including custom properties.
Error correction level makes the QR Code bigger and helps users to scan it without issues. L, M, Q and H values will use 7%, 15%, 25% and 30% of the QR code for error correction respectively.
This section includes guidelines for designers and developers about the usage of this component in different contexts.
- Use to allow people to access information on their smartphone without the need to type.
- Always provide an alternative way to access the same information.
- Don’t hide important information behind a QR Code only.
Nord provides a lightweight solution for localizing its components. Not all components need localizing, as for the most part snippets of text are set per instance. For full localization guidelines, please see Localization documentation.
If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.