Skip to main content

QR Modal

Customizing the QR modal, the viewer displays for devices incompatible with AR is possible through the exposed API.

Related example

CSS Variables

CSS variableDescriptionDefault valueOptions
--qr-cornersCorners around the QR image#4d4d4dAny CSS color

Parts:

The CSS pseudo-element :part allows to control the css of elements within the shadow tree that has a matching part attribute.

Part nameUI element
qr-fabThe floating action button that closes the modal
qr-containerThe container of the modal (most outer element)
qr-backdropThe backdrop of the modal
qr-dialogThe dialog element
qr-usageThe first line of text below the QR
qr-wrapperThe element wrapping the QR image
qr-requirementsThe requirement text (two last lines of text in the modal)
view-in-arThe floating action button that shows the modal

Changing the modal text

It is possible to change the text of the modal through our localization API.

Keyvalue
qr.altQR code
qr.usagePoint your smartphone or tablet's camera to scan the QR code and see this product in your environment.
qr.requirements.keyMinimum requirements
qr.requirements.valueiOS 13, iPadOS 13 or Android with AR Core 1.9 or higher
viewInARView in AR