Skip to content
caliper ui pro docs

Biometric prompt

The glyph for confirming with a face or fingerprint scan from the device. Scanning, the corners pulse and a ring turns; on success they fold into a disc and a tick draws; on failure the glyph shakes and turns red.

Pro

Confirm the transfer

Ready

When to use

  • Confirming payments, transfers and sensitive changes with a passkey or WebAuthn.
  • Unlock and sign-in screens in apps.

When not to use

  • Claiming a check that is not happening; it shows the state of a real prompt.
  • As the only way in; always offer a fallback such as a code.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/biometric-prompt

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

BiometricPrompt

2 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
state *BiometricState—
label *string—What is being confirmed, e.g. "Confirm the transfer".

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/biometric-prompt.md

The index of every part is at /llms.txt.

More in Changing values