Full-height plan selection step with a monthly/annual billing toggle and selectable plan cards that update their pricing live, plus a continue button. Perfect for paid sign-up and upgrade flows.
Full-height plan selection step: a monthly/annual billing toggle above a bordered card of selectable plan cards, each showing a name, description, optional badge, and a price that updates live with the billing toggle, followed by a continue button. Built for paid sign-up and upgrade 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/auth26?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth26?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth26.tsx and the button, radio-group, tabs, field, and badge shadcn/ui primitives it's built on.
The installed file exports auth26Demo alongside the block: the exact props behind the preview above. Spread it to get a working plan-selection screen in one line.
import { Auth26, auth26Demo } from "@/components/beste/block/auth26";
export default function ChoosePlanPage() {
return <Auth26 {...auth26Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Auth26 } from "@/components/beste/block/auth26";
export default function ChoosePlanPage() {
return (
<Auth26
heading="Choose your plan"
description="Start free and upgrade as your team grows."
billingOptions={[
{ value: "monthly", label: "Monthly", priceSuffix: "/month" },
{ value: "annual", label: "Annual", priceSuffix: "/year" },
]}
defaultBilling="monthly"
plans={[
{ value: "starter", name: "Starter", description: "For individuals.", price: { monthly: "$0", annual: "$0" } },
{ value: "pro", name: "Pro", description: "For small teams.", price: { monthly: "$12", annual: "$120" }, badge: "Popular" },
]}
labels={{ submit: "Continue" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
heading | string | – | Screen title |
description | string | – | Subtext below the heading |
billingOptions | BillingOption[] | [] | Tabs shown above the plan list; hidden entirely when empty |
defaultBilling | string | – | Initial billing tab value; falls back to the first billingOptions entry |
plans | Plan[] | [] | Selectable plan cards |
labels | object | {} | Submit button copy, see below |
footerPrompt | { text: string; linkLabel: string; href: string } | – | Line below the card; hidden entirely when not set |
className | string | – | Extra classes for the outer <section> |
type BillingOption = { value: string; label: string; priceSuffix: string };
type Plan = {
value: string;
name: string;
description: string;
price: Record<string, string>;
badge?: string;
};
type Auth26Labels = { submit?: string };Tabs component here is used purely as a segmented billing toggle: no TabsContent panels exist, and switching tabs just updates the billing state that the plan cards read from, not any tab-panel visibility.<label> wrapping a RadioGroupItem, so clicking anywhere on the card (not just the radio dot) selects that plan; the active card gets a border-primary bg-primary/5 treatment.plan.price[billing], looked up by the current billing tab's value; if a plan's price object is missing a key for the active billing option, that price renders blank, so every plan needs a price entry for every billingOptions value.selectedPlan initializes to plans[0]?.value and billing initializes to defaultBilling ?? billingOptions[0]?.value, so the first plan and first billing option are pre-selected without any prop needed.<form> only calls e.preventDefault() on submit; there is no onSubmit prop, so the continue button doesn't carry the selected plan or billing cycle anywhere on its own, the integrator has to read selectedPlan/billing state or fork the component to lift it.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.
auth11
Full-height onboarding step where the user picks an account type from selectable radio cards with icons and descriptions, then continues. Perfect for tailoring sign-up flows by persona or plan.
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.
auth39
Full-height security setup step where the user picks a two-factor method from selectable cards (authenticator app, SMS, or security key), with a skip option. Perfect for guiding users through enabling 2FA.
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.
auth7
Full-height account picker that lists saved accounts with avatars, names, and emails, plus a use-another-account row. Perfect for multi-account apps, SSO hubs, and returning-user sign-in.
auth33
Full-height multi-step registration with a numbered progress stepper that advances as the user moves through account, profile, and workspace steps, with back and continue controls. Perfect for guided onboarding sign-up.