Email & Social Login Card
Centred sign-in card with social providers, a password reveal toggle and the autoComplete values password managers actually need.
Registration form beside a testimonial panel, with live password rules and a proof column that drops rather than stacks on mobile.
components/auth-signup-split.tsxnpx hoverlab add auth-signup-split
Or over MCP, from your editor's agent — no account needed.
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Start a page with this section — add more, order them, and leave with the page source.
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
'use client'
/**
* <AuthSignupSplit> — registration form beside a proof panel.
*
* The panel is `hidden lg:flex`: below that width it is dropped entirely
* rather than stacked above the form. Pushing a testimonial above the
* fields on a phone means the first thing a user who came to sign up has to
* do is scroll past marketing.
*
* Password rules are stated up front and validated live. Hiding the
* requirements until submission rejects the form is how you get users who
* try four passwords and leave.
*/
import * as React from 'react'
import { Check, Loader2, Quote, Sparkles } from 'lucide-react'
export interface AuthSignupSplitProps {
heading?: string
subheading?: string
quote?: { text: string; name: string; role: string }
onSubmit?: (values: { name: string; email: string; password: string }) => Promise<void>
loginHref?: string
className?: string
}
/** Each rule is a predicate so the checklist and the submit gate agree. */
const RULES: { label: string; test: (v: string) => boolean }[] = [
{ label: 'At least 8 characters', test: (v) => v.length >= 8 },
{ label: 'One number', test: (v) => /\d/.test(v) },
{ label: 'One uppercase letter', test: (v) => /[A-Z]/.test(v) },
]
export function AuthSignupSplit({
heading = 'Create your account',
subheading = 'Free to start. No card required.',
quote = {
text: 'We shipped our marketing site in four days instead of three weeks. Same team, same headcount.',
name: 'Dana Whitfield',
role: 'Head of Design, Globex',
},
onSubmit,
loginHref = '/login',
className = '',
}: AuthSignupSplitProps) {
// Per-instance ids. A literal id in a reusable component is a
// collision waiting for the second copy on the page — and a <label>
// then resolves to whichever input rendered first.
const uid = React.useId()
const [name, setName] = React.useState('')
const [email, setEmail] = React.useState('')
const [password, setPassword] = React.useState('')
const [busy, setBusy] = React.useState(false)
const passed = RULES.map((r) => r.test(password))
const allPassed = passed.every(Boolean)
async function handleSubmit(event: React.FormEvent) {
event.preventDefault()
if (busy || !allPassed) return
setBusy(true)
try {
await onSubmit?.({ name, email, password })
} finally {
setBusy(false)
}
}
return (
<div className={`grid min-h-96 w-full grid-cols-1 lg:grid-cols-2 ${className}`}>
{/* ---------------------------------------------------------- *
* Form
* ---------------------------------------------------------- */}
<div className="flex items-center justify-center p-8">
<div className="w-full max-w-sm">
<h1 className="text-2xl font-bold tracking-tight">{heading}</h1>
{subheading ? (
<p className="mt-1.5 text-sm text-muted-foreground">{subheading}</p>
) : null}
<form onSubmit={handleSubmit} className="mt-7 space-y-4">
<div>
<label htmlFor={`${uid}-signup-name`} className="mb-1.5 block text-sm font-medium">
Full name
</label>
<input
id={`${uid}-signup-name`}
required
autoComplete="name"
value={name}
onChange={(e) => setName(e.target.value)}
placeholder="Ada Lovelace"
className="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary"
/>
</div>
<div>
<label htmlFor={`${uid}-signup-email`} className="mb-1.5 block text-sm font-medium">
Work email
</label>
<input
id={`${uid}-signup-email`}
type="email"
required
autoComplete="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
placeholder="you@company.com"
className="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary"
/>
</div>
<div>
<label htmlFor={`${uid}-signup-password`} className="mb-1.5 block text-sm font-medium">
Password
</label>
<input
id={`${uid}-signup-password`}
type="password"
required
autoComplete="new-password"
aria-describedby={`${uid}-signup-rules`}
value={password}
onChange={(e) => setPassword(e.target.value)}
className="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-primary"
/>
<ul id={`${uid}-signup-rules`} className="mt-3 space-y-1.5">
{RULES.map((rule, i) => (
<li
key={rule.label}
className={`flex items-center gap-2 text-xs transition-colors ${
passed[i] ? 'text-emerald-600 dark:text-emerald-400' : 'text-muted-foreground'
}`}
>
<span
aria-hidden
className={`flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-transparent transition-colors ${
passed[i] ? 'bg-emerald-500/15' : 'bg-muted'
}`}
>
{passed[i] ? <Check className="h-2.5 w-2.5" /> : null}
</span>
{rule.label}
<span className="sr-only">{passed[i] ? '— met' : '— not yet met'}</span>
</li>
))}
</ul>
</div>
<button
type="submit"
disabled={busy || !allPassed}
className="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-50"
>
{busy ? <Loader2 aria-hidden className="h-4 w-4 animate-spin motion-reduce:[animation-duration:1.6s]" /> : null}
{busy ? 'Creating account' : 'Create account'}
</button>
<p className="text-center text-xs text-muted-foreground">
By continuing you agree to the Terms and Privacy Policy.
</p>
</form>
<p className="mt-6 text-center text-sm text-muted-foreground">
Already have an account?{' '}
<a href={loginHref} className="font-semibold text-foreground hover:underline">
Sign in
</a>
</p>
</div>
</div>
{/* ---------------------------------------------------------- *
* Proof panel — dropped below lg rather than stacked
* ---------------------------------------------------------- */}
<div className="relative hidden items-center justify-center overflow-hidden border-s border-border/60 bg-gradient-to-br from-primary/10 via-card to-emerald-500/5 p-10 lg:flex">
<div
aria-hidden
className="pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full bg-primary/20 blur-3xl border border-transparent"
/>
<figure className="relative max-w-sm">
<Quote aria-hidden className="h-8 w-8 text-primary/40" />
<blockquote className="mt-4 text-lg font-medium leading-relaxed text-balance">
{quote.text}
</blockquote>
<figcaption className="mt-5 text-sm">
<span className="block font-semibold">{quote.name}</span>
<span className="block text-muted-foreground">{quote.role}</span>
</figcaption>
<div className="mt-8 flex items-center gap-2 rounded-xl border border-border/60 bg-background/60 px-4 py-3 text-sm backdrop-blur">
<Sparkles aria-hidden className="h-4 w-4 shrink-0 text-primary" />
<span className="text-muted-foreground">
Set up in under two minutes — nothing to configure.
</span>
</div>
</figure>
</div>
</div>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/auth-signup-split.tsx and import it where you need the section:
import { AuthSignupSplit } from '@/components/auth-signup-split'3 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.
Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.
| Prop | Type | Default |
|---|---|---|
heading | string | 'Create your account' |
subheading | string | 'Free to start. No card required.' |
quote | { text: string; name: string; role: string } | — |
onSubmit | (values: { name: string; email: string; password: string }) => Promise<void> | — |
loginHref | string | '/login' |
className | string | '' |
The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.
This block is interactive. The markup below is its initial state with the event handlers stripped — you will need to re-wire the behaviour in your framework.
<!--
Split Signup With Proof — markup from the Hoverlab catalog.
This is the block rendered once to HTML and wrapped as a component
file. It is not a port of the React source: the Tailwind classes carry
the design, which is the part that took the work, and they are the same
in every framework.
This block is interactive in React and the handlers are NOT here.
Buttons, toggles and menus render in their initial state and do
nothing until you wire them up.
-->
<div class="grid min-h-96 w-full grid-cols-1 lg:grid-cols-2 ">
<div class="flex items-center justify-center p-8">
<div class="w-full max-w-sm">
<h1 class="text-2xl font-bold tracking-tight">Create your account</h1>
<p class="mt-1.5 text-sm text-muted-foreground">Free to start. No card required.</p>
<form class="mt-7 space-y-4">
<div>
<label for="_R_0_-signup-name" class="mb-1.5 block text-sm font-medium">Full name</label>
<input id="_R_0_-signup-name" required="" autoComplete="name" placeholder="Ada Lovelace" class="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary" value="" />
</div>
<div>
<label for="_R_0_-signup-email" class="mb-1.5 block text-sm font-medium">Work email</label>
<input id="_R_0_-signup-email" type="email" required="" autoComplete="email" placeholder="you@company.com" class="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-primary" value="" />
</div>
<div>
<label for="_R_0_-signup-password" class="mb-1.5 block text-sm font-medium">Password</label>
<input id="_R_0_-signup-password" type="password" required="" autoComplete="new-password" aria-describedby="_R_0_-signup-rules" class="w-full rounded-xl border border-border/60 bg-background px-3.5 py-2.5 text-sm outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-primary" value="" />
<ul id="_R_0_-signup-rules" class="mt-3 space-y-1.5">
<li class="flex items-center gap-2 text-xs transition-colors text-muted-foreground"><span aria-hidden="true" class="flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-transparent transition-colors bg-muted"></span>At least 8 characters<span class="sr-only">— not yet met</span></li>
<li class="flex items-center gap-2 text-xs transition-colors text-muted-foreground"><span aria-hidden="true" class="flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-transparent transition-colors bg-muted"></span>One number<span class="sr-only">— not yet met</span></li>
<li class="flex items-center gap-2 text-xs transition-colors text-muted-foreground"><span aria-hidden="true" class="flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-transparent transition-colors bg-muted"></span>One uppercase letter<span class="sr-only">— not yet met</span></li>
</ul>
</div>
<button type="submit" disabled="" class="inline-flex w-full items-center justify-center gap-2 rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-50">Create account</button>
<p class="text-center text-xs text-muted-foreground">By continuing you agree to the Terms and Privacy Policy.</p>
</form>
<p class="mt-6 text-center text-sm text-muted-foreground">Already have an account? <a href="/login" class="font-semibold text-foreground hover:underline">Sign in</a></p>
</div>
</div>
<div class="relative hidden items-center justify-center overflow-hidden border-s border-border/60 bg-gradient-to-br from-primary/10 via-card to-emerald-500/5 p-10 lg:flex">
<div aria-hidden="true" class="pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full bg-primary/20 blur-3xl border border-transparent"></div>
<figure class="relative max-w-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-quote h-8 w-8 text-primary/40" aria-hidden="true">
<path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"></path>
<path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"></path>
</svg>
<blockquote class="mt-4 text-lg font-medium leading-relaxed text-balance">We shipped our marketing site in four days instead of three weeks. Same team, same headcount.</blockquote>
<figcaption class="mt-5 text-sm">
<span class="block font-semibold">Dana Whitfield</span>
<span class="block text-muted-foreground">Head of Design, Globex</span>
</figcaption>
<div class="mt-8 flex items-center gap-2 rounded-xl border border-border/60 bg-background/60 px-4 py-3 text-sm backdrop-blur">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles h-4 w-4 shrink-0 text-primary" aria-hidden="true">
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"></path>
<path d="M20 3v4"></path>
<path d="M22 5h-4"></path>
<path d="M4 17v2"></path>
<path d="M5 18H3"></path>
</svg>
<span class="text-muted-foreground">Set up in under two minutes — nothing to configure.</span>
</div>
</figure>
</div>
</div>
What each framework gets across the whole catalog — effects convert properly; this rung is markup.
The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.
Want the whole screen instead of this one section? Open a page and copy it entire.
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse AuthenticationCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
Centred sign-in card with social providers, a password reveal toggle and the autoComplete values password managers actually need.
Six-box OTP entry that handles paste, backspace, arrow keys and iOS SMS autofill — the parts hand-rolled versions always miss.
Reset-link request with a sent state worded to avoid leaking whether an account exists.
Set-a-new-password form with a four-step strength meter, confirm matching and errors announced rather than only coloured.
Authenticator-code prompt with a backup-code escape hatch and an opt-in trusted-device checkbox that is off by default.
Email first, then whatever that domain uses. The password field is absent rather than disabled when SSO is enforced, the button names the company it redirects to, and a personal address is a normal answer instead of an error.
Passwordless sign-in that says what will land in the inbox and how long it lasts, before the address is typed.
What SSO actually covers, written for the person who has to configure it rather than the person who asked for it.