Account Type Selection
Full-height onboarding step that presents 2-3 selectable account-type cards, each with an icon, title, and description. Selecting a card highlights it and enables the Continue button, built on real, keyboard-accessible radio inputs rather than fake unlabeled divs.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/account-type-selection.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth11.tsx instead.
Usage
The file also exports auth11Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Auth11, auth11Demo } from "@/components/blocks/auth/auth11"; export default function Page() { return <Auth11 {...auth11Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | "How will you use this?" | Screen heading. |
| description | string | undefined | Optional supporting text under the heading. |
| options | AccountTypeOption[] | none | The selectable account-type cards, rendered in the order passed in. |
| className | string | none | Extra classes for the outer section element. |
Types
type AccountTypeOption = { value: string; title: string; description: string; };
Behavior notes
- Card selection is real client state (useState), each card is a real <label> wrapping a visually-hidden (sr-only) <input type="radio" name="account-type">, not a fake div-only toggle, so keyboard and screen-reader users can select an option.
- No option is selected initially, the "Continue" button stays disabled until the user picks one, it has no onClick handler since continuing would require a real backend.
- The component supports any number of options, though the brief and demo use three (Personal, Team, Enterprise). Each option's icon is matched by array position from a fixed internal list rather than accepted as a prop, since a component reference can't be passed as a prop from the Server Component that renders this block's live preview.
More Auth Blocks
View all →centered-sign-in-card
Centered Sign In Card
Full-height centered sign-in card with social buttons, a password show/hide toggle, and remember-me.
split-screen-sign-up
Split-Screen Sign Up
Two-column registration screen with a sign-up form on one side and a full-bleed photo with a customer quote on the other.
email-verification-code
Email Verification Code
Full-height OTP screen with a 6-digit segmented code input, auto-advancing focus, and a live resend countdown.
forgot-password-request
Forgot Password Request
Full-height password recovery screen with a single email field, a send-reset-link button, and a back-to-sign-in link.
set-new-password
Set New Password
Full-height reset-password screen with independent show/hide toggles per field and a live password-requirements checklist.
magic-link-sign-in
Magic Link Sign In
Full-height passwordless sign-in screen with an email field, a send-magic-link button, and social login as a fallback.