We'll text you a one-time code to verify your number.
Prefer email? Sign in with email
Full-height phone-based sign-in with a country-code select paired to a phone number input, a send-code button, and an email fallback link. Perfect for SMS one-time-code authentication flows.
Full-height phone-based sign-in screen: a country-code select paired to a phone number input, a send-code button, optional helper text, and an email fallback link. Built for SMS one-time-code flows rather than password auth.
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/auth15?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth15?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth15.tsx and the button, input, field, and select shadcn/ui primitives it's built on.
The installed file exports auth15Demo alongside the block: the exact props behind the preview above. Spread it to get a working phone sign-in screen in one line.
import { Auth15, auth15Demo } from "@/components/beste/block/auth15";
export default function PhoneSignInPage() {
return <Auth15 {...auth15Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Smartphone } from "lucide-react";
import { Auth15 } from "@/components/beste/block/auth15";
export default function PhoneSignInPage() {
return (
<Auth15
icon={<Smartphone className="size-6" />}
heading="Sign in with your phone"
description="We'll text you a one-time code to verify your number."
countryCodes={[
{ value: "+1", label: "πΊπΈ +1" },
{ value: "+44", label: "π¬π§ +44" },
]}
defaultCountryCode="+1"
labels={{ phone: "Phone number", phonePlaceholder: "(555) 000-0000", submit: "Send code" }}
alternativePrompt={{ text: "Prefer email?", linkLabel: "Sign in with email", href: "/sign-in" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
icon | React.ReactNode | β | Icon shown inside the circular badge above the heading |
heading | string | β | Screen title |
description | string | β | Subtext below the heading |
countryCodes | CountryCode[] | [] | Options listed in the country-code select |
defaultCountryCode | string | β | Initial value passed into the select's controlled state |
labels | Auth15Labels | {} | Field/button/helper copy, see below |
alternativePrompt | { text: string; linkLabel: string; href: string } | β | Line below the card, hidden entirely when not set |
className | string | β | Extra classes for the outer <section> |
type CountryCode = { value: string; label: string };
type Auth15Labels = {
phone?: string;
phonePlaceholder?: string;
submit?: string;
helper?: string;
};Select is a controlled component seeded once from defaultCountryCode via useState; if that value doesn't match any countryCodes[].value, the trigger renders with no visible selection."πΊπΈ +1") rather than exposing a separate flag/icon field.Input uses type="tel" and inputMode="tel" for a numeric keyboard on mobile, but there is no client-side format or length validation on the number itself.labels.helper renders as a FieldDescription under the phone field only when set; the <form> only calls e.preventDefault() on submit, so no code is actually sent.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.
auth31
Full-height cross-device sign-in with a scannable QR code, a manual fallback code, and a live waiting-for-confirmation indicator. Perfect for signing in on desktop by scanning with a phone app.
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.
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.
auth51
A centered passwordless card that advances in place from a work email step with an SSO fallback to a monospace one-time-code entry with resend and go-back controls.