Skip to content

React login and signup components

Free React authentication components: sign in and sign up forms, magic link, social login, SSO, password reset, OTP and two factor setup screens.

12 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

The auth screens cover the whole journey: SignInPage and SignUpForm, MagicLinkForm for passwordless sign-in, ForgotPasswordForm and ResetPasswordForm, OtpInput for codes, and TwoFactorSetup and TwoFactorVerify for 2FA. AuthCard is the shared frame if you want to build your own variant.

They are UI only: you wire the submit handlers to Auth.js, Clerk, Supabase, Better Auth or your own API. The sign-in and sign-up fields carry the right autoComplete tokens, so password managers fill them, and Enter submits.

Which one should I use?

You needUseWhy
A whole /sign-in routeSign In PageOAuth buttons, then email and password
A sign-up cardSign Up FormIncludes GitHub and Google buttons
Passwordless sign-in by emailMagic Link FormConfirms where the link went
GitHub and Google buttonsSocial Auth RowTop of an AuthCard
Email me a reset linkForgot Password FormReal form, browser email check
Set a new passwordReset Password FormChecks the two fields match
Enter a one-time codeOtp InputPaste and SMS autofill work
Enrol a 2FA deviceTwo Factor SetupQR slot, setup key, code
The 2FA challenge at sign-inTwo Factor VerifySubmits on the last digit
Configure SSO providersSso Provider CardOne card per provider
Join a team with an invite codeJoin WorkspaceThe invitee's side
Your own auth layoutAuth CardTitle, body and footer slots

12 items

npx shadcn@latest add @minidev/auth-card @minidev/forgot-password-form @minidev/join-workspace @minidev/magic-link-form @minidev/otp-input @minidev/reset-password-form @minidev/sign-up-form @minidev/social-auth-row @minidev/sso-provider-card @minidev/two-factor-setup @minidev/two-factor-verify @minidev/sign-in-page

Components 11

  • Centered Tailwind sign in card with a title, optional description, a slot for fields and providers, and a divided footer for sign up or reset links.

    npx shadcn@latest add @minidev/auth-card
  • A password reset request card with one email field and a full width Send reset email button, composed from AuthCard, FormField and Input in React.

    npx shadcn@latest add @minidev/forgot-password-form
  • A centered card for joining a team workspace with an invite code: heading, helper text, a monospace code input and a full width Join button. Tailwind styled.

    npx shadcn@latest add @minidev/join-workspace
  • A passwordless sign in card with an email field and a Send link button that passes the address to onSend. Built from AuthCard, FormField and Input.

    npx shadcn@latest add @minidev/magic-link-form
  • A React one time code input where one real input powers the slots, so paste, SMS autofill and screen readers work natively. Has groups, error shake and success.

    npx shadcn@latest add @minidev/otp-input
  • Reset password card with new password and confirm password fields and a full-width Update password button, built from AuthCard, FormField and Input in React.

    npx shadcn@latest add @minidev/reset-password-form
  • Create account form with GitHub and Google buttons, required name, email and password fields, a submit button and a Sign in link, all inside an AuthCard.

    npx shadcn@latest add @minidev/sign-up-form
  • Two-column row of Continue with GitHub and Continue with Google buttons with click handlers, ready to sit above email fields on sign in and sign up screens.

    npx shadcn@latest add @minidev/social-auth-row
  • SSO provider card with a name, description, Configured or Not set badge, an enable switch and a Configure button. A React block for SAML and OIDC settings.

    npx shadcn@latest add @minidev/sso-provider-card
  • Two-factor setup card with a QR code area, a one-time code input and a Verify and enable button, guiding users through linking an authenticator app in React.

    npx shadcn@latest add @minidev/two-factor-setup
  • Two-factor verification screen with a one-time password input and a full-width Verify button inside an auth card. Use it as the second step after sign in.

    npx shadcn@latest add @minidev/two-factor-verify

Blocks and full pages 1

  • A centered Tailwind sign in page in an auth card with social login buttons, email and password fields, a full width submit and a sign up link in the footer.

    npx shadcn@latest add @minidev/sign-in-page

Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.

See them live

Galleries render these components with sample data in every state.

Frequently asked questions

Which auth provider do these components use?

None. They are UI components that call your handlers, so you can connect Auth.js, Clerk, Supabase, Better Auth or your own backend.

How does the OTP input handle paste and SMS autofill?

OtpInput lays one real <input> with autocomplete="one-time-code" invisibly over the slots. Paste, SMS autofill, backspace, selection and screen readers behave as they do on a normal input; the slots are only paint.

Is there a two-factor (2FA) setup screen?

Yes. TwoFactorSetup has a QR code slot, the manual setup key and a 6-digit code field; render your QR, for example with QrCode, into it. TwoFactorVerify is the sign-in challenge and submits itself when the last digit is typed.

Can I add Google and GitHub login buttons?

Yes. SocialAuthRow renders "Continue with GitHub" and "Continue with Google" side by side. Put it at the top of an AuthCard; SignUpForm already includes it.