Invite Code Gate

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.

PRO

Auth42: Invite Code Gate

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.

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/auth42?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" }}
    />
  );
}

Props

PropTypeDefaultDescription
iconReact.ReactNodeOptional node rendered in the circular badge above the heading
headingstringMain title, rendered as h1 when present
descriptionstringMuted 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
classNamestringExtra classes for the outer <section>

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

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

auth16

Team Invitation Accept

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.

PRO

auth43

Join the Waitlist

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.

FREE

auth13

Centered Sign Up Card

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.

FREE

auth1

Centered Sign In Card

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.

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.