Split-Screen Sign Up
A two-column registration screen: a sign-up form (social buttons, name, email, password with a show/hide toggle, and a terms checkbox) on one side, and a full-bleed photo with a customer testimonial overlay on the other. The photo side can be flipped with a single prop.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/split-screen-sign-up.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth2.tsx instead.
Usage
The file also exports auth2Demo, 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 { Auth2, auth2Demo } from "@/components/blocks/auth/auth2"; export default function Page() { return <Auth2 {...auth2Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Create your account" | Form column heading. |
| description | string | "Start your free trial, no credit card required." | Short subheading under the heading. |
| photo | MediaSlotImage | none | Full-bleed photo for the image column. |
| testimonial | Testimonial | none | Quote overlaid on the photo column, omitted if not passed. |
| imagePosition | "left" | "right" | "right" | Which side the photo column renders on at the lg breakpoint. |
| termsHref | string | "#" | Link target for the Terms of Service link. |
| signInHref | string | "#" | Link target for the Sign in link. |
| className | string | none | Extra classes for the outer section element. |
Types
type MediaSlotImage = { src: string; alt: string }; type Testimonial = { quote: string; name: string; role: string; };
Behavior notes
- The show/hide password toggle is real client-side state, same as the other sign-in blocks.
- imagePosition is a plain prop-driven swap using order-first/order-last utility classes, no client state involved, so it works even though the rest of the block needs "use client" for the password toggle.
- The photo column is hidden below the lg breakpoint so the form is never squeezed on small screens; social buttons, the terms checkbox, and the submit button are all decorative.
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.
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.
account-chooser
Account Chooser
Full-height account picker listing saved accounts with avatars, plus a Use another account row.