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.
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.
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.
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
npx shadcn add "https://ui.beste.co/r/auth21?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
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.
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.
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:
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" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
icon | React.ReactNode | – | Icon rendered in a muted circle above the heading |
heading | string | – | Screen title |
description | string | – | Subtext 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 |
labels | object | {} | Divider copy, see below |
className | string | – | Extra classes for the outer <section> |
type Auth21Labels = { divider?: string };Fingerprint icon inline before its label, independent of the icon prop used for the header circle above the card.FieldSeparator) renders only when labels.divider is set; omitting it collapses the card to just the passkey button stacked directly above the alternative button.passkeyButton and alternativeButton render as plain asChild next/link anchors; there is no navigator.credentials.get() call or any other WebAuthn wiring, so triggering the actual passkey ceremony is left to the integrator.signupPrompt renders through FieldDescription, matching the typographic treatment other auth cards in this family use for their bottom-of-card prompt line.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.
auth6
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.
auth46
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.
auth8
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.
auth30
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.
auth5
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.
auth17
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.