# Sign up form

A React block (a whole screen) in [Beamline](https://beamline.io/)'s [Blocks](https://beamline.io/components/blocks) category. Live demo: https://beamline.io/components/signup-form

The account creation card: single sign-on, name, work email and a password with strength and Caps Lock hints, terms consent, inline validation, your request's progress and errors, an emailed-code check and a finished state.

## Use it for

- Creating an account inside your own page, panel or modal, with or without an emailed-code check.

## Not for

- The whole [sign-in](https://beamline.io/components/sign-in) / sign-up route with product mark and backdrop ([auth](https://beamline.io/components/auth)).
- Signing in to an existing account ([sign-in](https://beamline.io/components/sign-in)).
- Inviting teammates (a dialog with [tag-input](https://beamline.io/components/tag-input)).

## Anatomy

- card (double bezel)
- heading and description
- single sign-on buttons
- "or" rule
- name field
- work email field
- password field (reveal, strength meter, Caps Lock hint)
- terms consent
- form error
- submit
- verify step (code boxes, resend countdown, change email)
- done step
- footer (Have an account? Sign in)

## States

- empty
- invalid fields (each message says the fix)
- weak password
- terms not accepted
- submitting (button keeps size, aria-busy)
- field error from your handler (AuthFieldError, e.g. email taken)
- form error (any other rejection)
- provider in flight / failed
- verify: code sent, checking, wrong code
- done

## Keyboard

- Tab moves through providers, fields, the reveal button, consent and submit
- Enter submits; the first invalid field takes focus
- the verify step focuses the code boxes and checks the code once every digit is in
- Space toggles consent

## Motion

A new step arrives on --motion-in (fade and a 6px rise) and replaces the old one at once; the strength bars change colour over --motion-out. Reduced motion keeps the fade only.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `onSubmit` (required) | `(details: SignupDetails) => Promise<void \| AuthAccount>` | — | Create the account. Reject with AuthFieldError("email", …) for a taken address; any other Error shows above the button. With onVerifyEmail, resolve once the code is sent. |
| `onVerifyEmail` | `(email, code) => Promise<void \| AuthAccount>` | — | Adds the emailed-code step after submit. |
| `onResendCode` | `(email) => Promise<void>` | — | Offers Resend in the code step after the countdown. |
| `providers / onProvider` | `AuthProvider[] / (provider) => Promise<void \| AuthAccount>` | — | Sign up with single sign-on; your own icons. |
| `onSwitchToSignIn` | `() => void` | — | Shows "Have an account? Sign in". |
| `onSuccess` | `(account: AuthAccount) => void` | — | Runs once the account exists (and the email is confirmed, when verifying). |
| `termsHref / privacyHref` | `string` | — | Adds a required consent checkbox linking both. |
| `product / title / description` | `string / ReactNode` | — | Heading defaults to "Create an account". |
| `defaultValues` | `Partial<SignupDetails>` | — |  |
| `minPasswordLength` | `number` | `8` |  |
| `codeLength / resendAfter` | `number` | `6 / 30` |  |
| `headingLevel` | `1 \| 2 \| 3` | `1` |  |
| `className` | `string` | — |  |
| `classNames` | `SignupFormClassNames` | — |  |
| `style / ref` | `CSSProperties / Ref<HTMLElement>` | — |  |
| `providerClassNames` | `AuthProviderListClassNames` | — | Shared provider root/button/icon slots; all rows reserve the icon slot if any supplied provider has one. |

## Built from

- bezel
- form
- input
- [password-field](https://beamline.io/components/password-field)
- checkbox
- [otp-input](https://beamline.io/components/otp-input)
- button
- marker
- avatar
- spinner

## Dependencies

`lucide-react`, `motion`, `react-hook-form`

## Import

```tsx
import { SignupForm } from "@/blocks/signup-form/signup-form";
```

## Get it

Sign up form is part of Beamline: 190 React components and screens your coding agent (Claude Code, Codex, Cursor or any MCP client) installs into your app through Beamline's MCP server, as a ready-built package or as plain React source you can change. $49 one payment (regular $200), no subscription, a year of updates, one licence for your whole team. [Get Beamline](https://beamline.io/checkout?pack=complete) · [Connect your agent](https://beamline.io/connect)

## More in Blocks

- [AI agent workspace](https://beamline.io/components/agent-workspace): Threads, a conversation with streamed reasoning, cited answers and a plan that waits for approval then runs step by step, and an artifacts panel with…
- [Analytics dashboard](https://beamline.io/components/analytics-dashboard): A SaaS overview in the app shell, fed by your metrics hook: range and segment filters drive KPIs, new and expansion revenue, channels, plan mix, uptime…
- [Auth page](https://beamline.io/components/auth): The whole sign-in / sign-up route: product mark, a quiet dotted field with a light that follows the mouse, an optional notice, the SignIn and SignupForm…
- [Changelog feed](https://beamline.io/components/changelog-feed): An in-app What's new page: release notes grouped by month with tags, versions, pictures and details, a tag filter with counts, entries since your last…
- [CRM pipeline](https://beamline.io/components/crm): A pipeline screen: KPIs and stage mix derived from a virtualised deals grid with inline edit, bulk moves and delete with undo; a row opens the deal in a…
- [Empty states](https://beamline.io/components/empty-states): The five empty moments every product has, written and wired: first use with a first step, no results with the filters to clear, an error with retry and a…
- [Page header](https://beamline.io/components/page-header): The top of a record or project page: breadcrumb, title with status, description and meta, a primary action with secondary actions that fold into a More…
- [Plan comparison](https://beamline.io/components/plan-comparison): Plans side by side against every feature: prices that roll between monthly and yearly, the current and recommended plan marked, a header that stays in…
- [Settings](https://beamline.io/components/settings): Profile and workspace settings with one draft and real save handler. Personal mode omits workspace data; optional profile fields share validation…
- [Sign in](https://beamline.io/components/sign-in): The sign-in card: email and password, a one-time code or a magic link, passkeys and single sign-on, with validation, progress, errors and a signed-in…
- [Step form](https://beamline.io/components/step-form): The finished frame for any multi-step form you compose — onboarding, intake brief, questionnaire, booking, application: a wide card with progress, the…
- [Trading terminal](https://beamline.io/components/trading-terminal): A perpetuals terminal on your feed and your account: ticker tape, market header with funding, candles, book / trades / depth, order ticket, account…
- [Voice agent](https://beamline.io/components/voice-agent): A voice agent in three layouts on one session: a support panel that mixes typing and talking, a call screen with the agent's orb and one call button, and…
