Use your fingerprint, face, or device PIN to sign in securely — no password required.
Don't have an account? Sign up
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.
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.
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.