Arc
ComponentsBlocksDocsPricingTry the demo
Get Pro
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboardPro
KPI drilldownPro
Metric explorerPro
Revenue explorerPro
MRR waterfallPro
Cohort retentionPro
Usage forecastPro
Journey flowPro
Uptime statusPro
Pivot builderNewPro
Choropleth explorerPro
Connected scatterPro
Horizon chartPro
Account healthPro
Market terminalPro
Budget variancePro
Small multiplesPro
Line replayPro
AI chatPro
AI composerPro
AI answerPro
Model pickerPro
Model arenaPro
Prompt studioPro
Document extractionPro
Agent memoryPro
AI side panelPro
AI inline editPro
Research runPro
AI insight cardPro
Catch upPro
AI feature launchPro
AI search barPro
AI setup wizardPro
Call insightsPro
Lead scoringPro
Agent runPro
Agent tasksPro
Agent approvalsPro
Agent routinesPro
Agent orchestratorPro
MCP serversPro
Knowledge basePro
Eval suitePro
Agent builderPro
Agent galleryPro
SidebarPro4
Page header
Command palette
Notification center
Selection toolbarPro
Empty states
Search resultsPro
Login and sign up5, free and Pro variants
Onboarding illustrationPro
OTP input
Multi-step formPro
Two-factor setupPro
Magic linkPro
Settings pagePro
Settings commandPro
Security settingsPro
Billing overviewPro
Usage billingPro
Cancel flowPro
Onboarding surveyPro
Spend alertPro
Team membersPro
Invite peoplePro
Team directoryPro
Roles and permissionsPro
Profile pagePro
API keysPro
WebhooksPro
IntegrationsPro
Environment variablesPro
Domain verifyPro
Webhook testerPro
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Live checkoutPro
Seat managerPro
Credit top-upPro
Invoice studioPro
Wallet cardPro
Delivery trackerPro
Product listingPro
Product detailPro
Seat mapPro
Activity feedPro
Inbox triagePro
Support conversationPro
Support widgetPro
Help centerPro
Feature votingPro
File upload
Media playerPro
Week calendarPro
Availability pickerPro
Project boardPro
Gantt timelineNewPro
Release readinessPro
Kanban boardPro
Feedback boardPro
Smart schedulerPro
Task breakdownPro
Goal trackerPro
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrainPro
Revenue globePro
Customer galaxyPro
Semantic zoomPro
Layout morphPro
Exploded viewPro
What’s new4 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/sign-in
5 variants

Email codeA sign in card that morphs from email to a six digit code to your account.

Live block · sample data

When to use

  • The entry screen of an app with email code sign in.
  • Sign in cards that also offer passkeys and single sign-on.
  • Passwordless flows that should confirm the account before continuing.

When not to use

  • Use login-centered, login-split, or login-immersive for password based layouts.
  • Use signup-form to create an account.
  • Use otp-input on its own when the code step lives in your own form.

Installation

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

$pnpm dlx shadcn@latest add @uiarc/sign-inpnpm dlx shadcn@latest add @uiarc/sign-in

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 the entry to your app. Send and check codes through your auth provider, connect the passkey button to WebAuthn and the single sign-on buttons to OAuth; everything in the preview is simulated.

example.tsx
1import { SignIn } from "@/components/arc/blocks/sign-in/sign-in";2import { useRouter } from "next/navigation";3 4export function SignInPage() {5  const router = useRouter();6 7  return <SignIn onSignIn={() => router.push("/dashboard")} />;8}
Built fromInputOTP inputButtonAvatar

API reference

SignIn

A sign in card that moves from email to a six digit code to a signed in account, with passkey and single sign-on buttons. Sending and checking codes is simulated.

PropTypeDefaultDescription
demoCodestring"123456"The code the simulated email contains.
onSignIn(account: SignInAccount, method: SignInMethod) => void–Called once sign in succeeds. SignInAccount is { name, email, photo? }; SignInMethod is "Email code", "Passkey", "Google", "Apple", or "GitHub".

Accessibility

  • Single sign-on providers are a labelled group of buttons with visible names.
  • Step changes and errors are announced through a visually hidden role="status" region.
  • Provider marks are aria-hidden SVGs next to text labels.

Motion

  • The card morphs its height between the email, code, and done steps, sliding content in the direction of travel.
  • Reduced motion swaps the slide for a plain fade.

Responsive behavior

  • The card is a container; below 380px its padding and heading shrink, and the provider buttons tighten.
  • Below a 480px viewport the card corners soften to the panel radius.

Performance

  • A ResizeObserver drives the height morph between steps.
  • The signed in avatar reuses the same image through a layoutId, so the morph does not wait on a second image.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use as the entry screen of an app.
  • Send and verify codes through your auth provider instead of demoCode, connect the passkey button to WebAuthn, and the provider buttons to OAuth.
  • Composes Arc input, otp-input, button, and avatar; exports SignInAccount and SignInMethod types.
/components/blocks/login/markdown

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

Related

OTP inputBlockA six digit verification flow with paste support and keyboard navigation.Login and sign up: CenteredBlockA passkey-first login card on a quiet ring backdrop that morphs through email and code.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: Sign upBlockAn account creation flow with field validation, password strength, and a clear completion state.Password fieldComponentCapture sensitive text with a visible reveal control.

More like this in Pro

Explore Pro
Onboarding illustrationProBlockA compact onboarding card whose line illustration morphs from folder to files, team, and badge.Two-factor setupProBlockA two-factor setup card where you scan a real, working authenticator QR code, type the 6-digit code into slots that move to the next box on their own, and save your backup codes before it turns on. Every step shares one fixed-size card, so it moves between steps with a short slide and never changes size.Magic linkProBlockA passwordless sign in card where an email with inline validation and typo fixes sends a magic link, and the card crossfades in place to a check your inbox step with a sealing envelope, Gmail and Outlook shortcuts and a resend countdown. Google and GitHub sign in sit above, with their real marks.
PreviousRelease readinessNextWallet card
Arc · 134 block pagesllms.txt

On this page

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

Sign in to Arc

Enter your email and we will send you a 6 digit code.

or

No account?