Corpora UI
Blocks

Passkey sign-in

Passkey entry point sized to sit inside a login card: one button plus its error state. Renders nothing when the device cannot use passkeys, and treats a cancelled OS prompt as a silent return to idle.

Preview and props

Expand Props below the centered preview to change the component’s properties.

Examples

Toggle availability and try the simulated sign-in outcomes.

Example controls

Usage

import { PasskeySignInBlock } from "@exegia/corpora-ui"

<PasskeySignInBlock
  available={capability.usable}
  onSignIn={signInWithPasskey}
/>

API notes

PropTypeDefaultDescription
availablebooleantrueWhether this device can use passkeys. false renders nothing at all — a button guaranteed to fail is worse than no button.
labelstring"Sign in with a passkey"Button label.
onSignIn() => Promise<{ cancelled?: boolean } | void&gt—Reject (or throw) to show the inline error. Resolve with { cancelled: true } to return silently to idle.
fallbackHintReact.ReactNode—Shown under an error, pointing at the remaining sign-in methods.

Last updated on

On this page