Props for integrating the React component in your app.
avatarSrcstring- Image displayed behind the blur. Lumo uses its local avatar by default. Supply an image URL when embedding elsewhere.
waveDirection"inward" | "outward"- The side of the ring the ticks extend towards. Defaults to "inward".
presentation"card" | "inline"- Use "inline" to display the scanner and its controls directly in a page or scene.
startOnMountboolean- Start the first simulated pass when the widget appears. Defaults to false.
passes1 | 2- Set how many passes the ring tracks before validation. Defaults to 2. Use the same value when advancing a controlled session.
sessionFaceScanSession- Let the host control the scan phases and timing.
onSessionChange(session: FaceScanSession) => void- Receives the requested session when a scan control is pressed.
portraitDirectionFaceScanDirection | null- Set the pose at a narration cue. Use null for the centered pose. If omitted, the portrait follows the current step.
showPromptboolean- Show and announce the directions in the widget. Set to false when the host presents the instructions.
showFooterboolean- Show the directions, pass indicator, and controls below the dial. Defaults to true.
showCompletionMarkboolean- Replace the blurred portrait with a checkmark when the scan completes. Defaults to false.
onPromptChange(prompt: FaceScanPrompt) => void- Reports stable cue IDs and their text for use in an external guide.
scanTimingsPartial<Record<FaceScanDirection, number>>- Override the duration of each direction in milliseconds, including its dial animation.
onComplete() => void- Called when the last scheduled pass finishes.