Passkey Sign In

Full-height passwordless sign-in screen with a fingerprint icon, a continue-with-passkey button, and a password fallback below a divider. Perfect for WebAuthn and biometric authentication flows.

PRO

Auth21: Passkey Sign In

Full-height passwordless sign-in screen: a centered fingerprint icon and heading over a bordered card with a full-width "Continue with passkey" button, an optional divider, and a password fallback button beneath it. Built for WebAuthn and biometric authentication flows.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/auth21?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/auth21?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/auth21.tsx and the button and field shadcn/ui primitives it's built on.

Quick start

The installed file exports auth21Demo alongside the block: the exact props behind the preview above. Spread it to get a working passkey sign-in screen in one line.

tsx
import { Auth21, auth21Demo } from "@/components/beste/block/auth21";

export default function SignInPage() {
  return <Auth21 {...auth21Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Fingerprint } from "lucide-react";
import { Auth21 } from "@/components/beste/block/auth21";

export default function SignInPage() {
  return (
    <Auth21
      icon={<Fingerprint className="size-7" />}
      heading="Sign in with a passkey"
      description="Use your fingerprint, face, or device PIN to sign in securely."
      passkeyButton={{ label: "Continue with passkey", href: "/auth/passkey" }}
      alternativeButton={{ label: "Sign in with password", href: "/sign-in" }}
      signupPrompt={{ text: "Don't have an account?", linkLabel: "Sign up", href: "/sign-up" }}
      labels={{ divider: "or" }}
    />
  );
}

Props

PropTypeDefaultDescription
iconReact.ReactNodeIcon rendered in a muted circle above the heading
headingstringScreen title
descriptionstringSubtext below the heading
passkeyButton{ label: string; href: string }Primary "Continue with passkey" action; hidden entirely when not set
alternativeButton{ label: string; href: string }Outline fallback action below the divider; hidden entirely when not set
signupPrompt{ text: string; linkLabel: string; href: string }Line below the card; hidden entirely when not set
labelsobject{}Divider copy, see below
classNamestringExtra classes for the outer <section>
ts
type Auth21Labels = { divider?: string };

Behavior notes

Wiring the form up

This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.

More Auth blocks

View all Auth
FREE

auth6

Magic Link Sign In

Full-height passwordless sign-in screen with a single email field, a send-magic-link button, a helper note, and social login providers below a divider. Perfect for passwordless and email-link authentication flows.

PRO

auth46

Confirm It's You

Full-height step-up authentication screen that re-asks for the password before a sensitive action, showing the signed-in account and a cancel option. Perfect for protecting billing, security, and destructive actions.

PRO

auth8

Welcome Back Unlock

Full-height re-authentication screen showing the signed-in user's avatar, name, and email with a single password field, a forgot-password link, and a use-a-different-account option. Perfect for session unlock and returning-user prompts.

FREE

auth30

PIN Keypad Unlock

Full-height numeric keypad lock screen with PIN dots, a biometric shortcut, and a backspace key. Perfect for mobile app locks and quick re-authentication.

FREE

auth5

Set New Password

Full-height reset-password screen with new and confirm password fields (each with a show/hide toggle) and a live requirements checklist that ticks off rules as the user types. Perfect for the final step of a password reset or invite flow.

PRO

auth17

Signed Out Confirmation

Full-height signed-out screen with a centered icon, a heading and message, a sign-back-in button, and a return-home link. Perfect for logout confirmations and expired-session pages.