QR CodeReady

QR Code component is used for providing information or links to users which they can quickly scan with their smartphone.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-stack>
  <nord-qrcode value="https://nordhealth.design"></nord-qrcode>
  <nord-input value="https://nordhealth.design" label="Value"></nord-input>
</nord-stack>

<script>
  const qrCode = document.querySelector("nord-qrcode")
  const input = document.querySelector("nord-input")

  input.addEventListener("input", () => (qrCode.value = input.value))
</script>

Properties

PropertyAttributeDescriptionTypeDefault
valuevalue

The value of the QR Code, most commonly an URL.

string""
labellabel

Label used by assistive technology. If unspecified, the value will be used instead.

string""
sizesize

The size of the rendered QR Code in pixels.

number128
colorcolor

The fill color of the QR Code. Can accept any valid CSS color value, including custom properties.

string"var(--n-color-text)"
backgroundbackground

The background color of the QR Code. Can accept any valid CSS color value, including custom properties.

string"var(--n-color-surface)"
correctioncorrection

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.

"L" | "M" | "Q" | "H""H"

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • 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 #

  • Don’t hide important information behind a QR Code only.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Troubleshooting

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.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.