Full-height invite-only gate with a centered code field and a request-an-invite link. Perfect for closed betas, early access, and gated launches.
A full-height centered auth gate that stacks an optional circular icon, a heading, and a description over a bordered card holding a single monospaced, center-aligned invite-code input and a full-width submit button, with an optional "request an invite" prompt link below the card.
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/auth42?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth42?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth42.tsx, plus the button, input, and field shadcn/ui primitives it uses for the submit button, the code input, and the field label/description scaffolding.
The installed file exports auth42Demo alongside the block: the exact props behind the preview above. Spread it to get a working invite-code gate in one line.
import { Auth42, auth42Demo } from "@/components/beste/block/auth42";
export default function InviteGatePage() {
return <Auth42 {...auth42Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { KeyRound } from "lucide-react";
import { Auth42 } from "@/components/beste/block/auth42";
export default function InviteGatePage() {
return (
<Auth42
icon={<KeyRound className="size-6" />}
heading="Enter your invite code"
description="Access is invite-only during the beta."
labels={{ code: "Invite code", codePlaceholder: "XXXX-XXXX", submit: "Continue" }}
requestPrompt={{ text: "Don't have a code?", linkLabel: "Request access", href: "/waitlist" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
icon | React.ReactNode | – | Optional node rendered in the circular badge above the heading |
heading | string | – | Main title, rendered as h1 when present |
description | string | – | Muted subtitle below the heading |
labels | { code?: string; codePlaceholder?: string; submit?: string } | {} | Field label, input placeholder, and submit button text |
requestPrompt | { text: string; linkLabel: string; href: string } | – | Optional prompt and link rendered below the card |
className | string | – | Extra classes for the outer <section> |
onSubmit calls e.preventDefault() only, and the input is uncontrolled with no value/onChange, so reading and validating the entered code is entirely up to the integrator.heading, description, labels.code label, labels.submit button, and the entire requestPrompt block each render only when their prop is truthy.labels.codePlaceholder is omitted (the placeholder simply becomes undefined), and it is styled text-center font-mono tracking-widest with autoComplete="off".useId()-derived id (${fieldId}-code), so multiple instances on one page stay accessible without id collisions.requestPrompt.href renders through next/link, so it navigates as an internal route by default; pass an absolute URL (as the demo does with https://beste.co) for external destinations.min-h-screen and vertically centers its max-w-md column, so the block is intended to own the full viewport rather than sit inside other page content.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.
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.
auth16
Full-height invitation acceptance screen showing the inviter's avatar and team name, a pre-filled disabled email, and name and password fields to set up the account. Perfect for team onboarding and invite-link flows.
auth43
Full-height waitlist capture with an email field, a join button, a social-proof line, and a sign-in link for existing users. Perfect for pre-launch and early-access landing gates.
auth13
Full-height centered registration card with social providers, name, email, and password fields (with show/hide), a terms checkbox, and a sign-in link. Perfect for SaaS sign-up pages that don't need a split layout.
auth1
Full-height centered sign-in screen with social login providers, email and password fields, a show/hide password toggle, remember-me checkbox, and forgot-password link. Perfect for SaaS apps, dashboards, and member portals.
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.