Set status from your face check, and compose the parts.
face-unlock.tsx
FaceScan
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm""xl" | "default" | |
| status | "error""idle""scanning""success" | "idle" | The stage: idle (default), scanning, success, or error. The app sets it. |
| look | boolean | true | In the idle stage, the face looks toward the pointer over the root. Default true. |
| labels | Partial<FaceScanLabels> | — | The words of each stage for FaceScanStatus. |
| children | ReactNode | — | The parts. With none, the root shows the glyph and the status line. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
FaceScanGlyph
<svg>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <svg> attributes | — | Every other attribute goes to the <svg>, with a ref. |
FaceScanStatus
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| children | — | The words, or a function that answers per stage. With none, the root labels answer. | |
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
FaceScanSurface
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "hud""plain""tile" | "plain" | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |







