Skip to content

QrScanner

A QR scanner viewfinder; the host camera fires scanned {value}.

Group: Inputs · Kind: native

example
Point at the code on your computer
disabled · true
Paused

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-qr-scanner on Web
exponential-ui-qr-scanner on iOS
exponential-ui-qr-scanner on Android
exponential-ui-qr-scanner on Desktop
Prop Type Required Bindable Description
hint string – yes Muted line below.
formats [string] – – Code formats. Default ["qr"].
label string – – An accessibility label. Default "$string.scanQrCode".
disabled boolean – – Stops scanning. Default false.
  • on.scanned: runs an action

None.

none

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: img

img named by label (default scanQrCode); a decoded value is announced politely; without a host camera the label reads cameraUnavailable

Keys Action
None scanning needs no key; the host’s camera permission prompt is the platform’s

Recipe parts: QrScanner/root QrScanner/viewfinder QrScanner/feed QrScanner/corner QrScanner/scanLine QrScanner/placeholder QrScanner/placeholderIcon QrScanner/hint

Keyed by: disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · Radio