Arc
ComponentsBlocksDocsPricingTry the demo
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboard
KPI drilldownNew
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Connected scatterNew
Market terminalNew
Budget varianceNew
Small multiplesNew
Line replayNew
AI chatNew
AI composer
Agent runNew
SidebarPro4
Page header
Command palette
Notification center
Empty states
Login and sign up5
OTP input
Multi-step formPro
Settings page
Security settings
Billing overview
Usage billingNew
Team members
Invite peopleNew
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Plan comparison
Pricing calculatorNewPro
Usage pricingPro
Cart drawerNewPro
Checkout summaryNewPro
Invoice studio
Wallet card
Product listingNew
Product detailNew
Inbox triage
Support conversation
Support widget
File upload
Media playerPro
Week calendarNew
Availability picker
Project board
Release readiness
Hero sectionNew
Hero signupNewPro
Scroll storyNewPro
Spotlight gridNewPro
Feature bentoNewPro
Comparison tableNew
Logo marquee
Studio perspectivesPro
Stats bandNew
Changelog feed
FAQ sectionNew
Contact sectionNew
Team showcasePro
Blog gridNew
Site headerNew
Site footerNew
CTA sectionNew
Newsletter signupNew
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new80 new
BlocksLogin and sign up

Login and sign up

Sign in and sign up pages, from a compact code card to full screen split and immersive layouts.

$pnpm dlx shadcn@latest add @uiarc/login-centered
5 variants

CenteredA passkey-first login card on a quiet ring backdrop that morphs through email and code.

Live block · sample data

When to use

  • A full screen sign in or sign up page where passkeys are the main method.
  • Auth flows that fall back to a six digit email code.
  • Products that want one card for both sign in and sign up.

When not to use

  • Use login-split for password sign in beside a brand photo.
  • Use login-immersive for magic link auth over a full-bleed photo.
  • Use sign-in for a simpler embedded sign in form.

Installation

Add Login and sign up (Centered) with the shadcn CLI, or copy the source by hand.

$pnpm dlx shadcn@latest add @uiarc/login-centeredpnpm dlx shadcn@latest add @uiarc/login-centered

Adds the block and its local dependencies, and installs motion, lucide-react. First time? Add the @uiarc registry to components.json, or use the full URL:

Usage

Use this as a full screen sign in page (pass fullScreen). Connect the passkey button to WebAuthn, the email step to your magic code sender, the code step to verification, and the SSO buttons to your OAuth routes; onSignIn receives the email, method and mode.

example.tsx
1import { LoginCentered } from "@/registry/blocks/login-centered/login-centered";2import { useRouter } from "next/navigation";3 4export default function SignInPage() {5  const router = useRouter();6  return (7    <LoginCentered8      fullScreen9      termsHref="/terms"10      privacyHref="/privacy"11      onSignIn={() => router.push("/app")}12    />13  );14}
Built fromButtonInputOTP input

Examples

Route sign ups to onboarding

example.tsx
1<LoginCentered2  fullScreen3  onSignIn={(email, method, mode) =>4    router.push(mode === "sign-up" ? "/welcome" : "/app")5  }6/>

API reference

LoginCentered

A passkey-first sign in and sign up card on a ring backdrop that morphs through email and a six digit code. Passkey, email delivery and SSO are simulated.

PropTypeDefaultDescription
fullScreenbooleanfalseFill the viewport (100dvh, no frame) when the block is the whole page.
onSignIn(email: string, method: LoginMethod, mode: "sign-in" | "sign-up") => void–Called once the simulated sign in or sign up succeeds. LoginMethod is "Passkey" | "Email code" | "Google" | "Apple" | "GitHub".
demoCodestring"482913"The code the simulated email contains.
demoEmailstring"maya@northwind.studio"The account a simulated passkey or single sign-on resolves to.
termsHrefstring"#terms"Terms link in the footer.
privacyHrefstring"#privacy"Privacy link in the footer.
classNamestring–Appended to the root element.

Accessibility

  • The email field uses autoComplete="email" and the code step uses the OTP input group.
  • Busy buttons use aria-busy and aria-disabled so focus stays put during simulated requests.
  • A polite role="status" region announces step changes and errors.

Motion

  • Steps slide and blur between passkey, email, code and done while the card height follows; the resend label rolls.
  • Reduced motion swaps slides for fades and shows the passkey check without drawing its stroke.

Responsive behavior

  • Below a 520px container the stage and card padding shrink, and below 400px the SSO buttons tighten to small text.
  • Pass fullScreen to fill 100dvh; without it the block sits in a framed card.
  • The ring backdrop drifts with the pointer only while it moves over the screen, and stays still on touch and under reduced motion.

Performance

  • The backdrop is a light SVG ring set moved by CSS variables from motion values, with no re-render per pointer move.
  • Only the active step is mounted; the card height animates as steps change.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use as a full screen sign in page (pass fullScreen) when passkeys are the primary method.
  • Connect the passkey button to WebAuthn, the email step to your code sender, the code step to verification and SSO buttons to OAuth routes; demoCode and demoEmail exist only for the simulation.
  • onSignIn receives the email, method and mode; redirect from there.
  • Composes Arc Button, Input and OTP input.
/components/blocks/login/markdown

The full library index for assistants is at /llms.txt.

Related

Login and sign up: Email codeBlockA sign in card that morphs from email to a six digit code to your account.Login and sign up: SplitProBlockA full screen split login: an email-first form that morphs into a password step beside a photo.Login and sign up: ImmersiveProBlockA glass magic link card over dusk photography that folds its envelope shut once sent.Login and sign up: Sign upBlockAn account creation flow with field validation, password strength, and a clear completion state.OTP inputBlockA six digit verification flow with paste support and keyboard navigation.
PreviousRelease readinessNextWallet card
Arc · 75 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • Examples
  • API reference
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown
Arc

No account?

Sign in to Arc

Use the passkey saved on this device. No password needed.

or

TermsPrivacy