Split-Screen Sign In
Two-column sign-in screen: a full sign-in form with social provider buttons, email, password, and a remember-me checkbox on one side, and a solid-color brand panel listing product highlights on the other. The image/brand column position is configurable, so the same block works whether the brand panel should sit left or right.
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/split-screen-sign-in.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth9.tsx instead.
Usage
The file also exports auth9Demo, 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 { Auth9, auth9Demo } from "@/components/blocks/auth/auth9"; export default function Page() { return <Auth9 {...auth9Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | ReactNode | "Sign in to your account" | Form column heading. |
| description | string | "Welcome back, enter your details to continue." | Form column subheading. |
| brandHeading | ReactNode | none | Heading shown in the brand panel. |
| brandDescription | string | undefined | Optional supporting text under the brand heading. |
| highlights | string[] | none | 3-4 product highlight bullets rendered with check icons in the brand panel. |
| imagePosition | "left" | "right" | "right" | Which side the brand panel sits on, swaps column order via order-first/order-last. |
| signUpHref | string | "#" | Link target for the "Sign up" link. |
| forgotPasswordHref | string | "#" | Link target for the "Forgot password?" link. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The password show/hide toggle and the "remember me" checkbox are both real client state (useState), everything else in the form is a static, non-functional preview.
- The brand panel uses a solid bg-primary background rather than a photo, so it always matches the active theme preset instead of depending on stock imagery.
- Social provider buttons ("Google", "Microsoft") are decorative and have no onClick handler, same as the inert CTAs in the About blocks.
- The brand panel is hidden below the lg breakpoint (lg:flex), so on small screens only the sign-in form renders.
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.