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.
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 need | Use | Why |
|---|---|---|
| A whole /sign-in route | Sign In Page | OAuth buttons, then email and password |
| A sign-up card | Sign Up Form | Includes GitHub and Google buttons |
| Passwordless sign-in by email | Magic Link Form | Confirms where the link went |
| GitHub and Google buttons | Social Auth Row | Top of an AuthCard |
| Email me a reset link | Forgot Password Form | Real form, browser email check |
| Set a new password | Reset Password Form | Checks the two fields match |
| Enter a one-time code | Otp Input | Paste and SMS autofill work |
| Enrol a 2FA device | Two Factor Setup | QR slot, setup key, code |
| The 2FA challenge at sign-in | Two Factor Verify | Submits on the last digit |
| Configure SSO providers | Sso Provider Card | One card per provider |
| Join a team with an invite code | Join Workspace | The invitee's side |
| Your own auth layout | Auth Card | Title, 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-pageComponents 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-cardA 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-formA 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-workspaceA 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-formA 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-inputReset 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-formCreate 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-formTwo-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-rowSSO 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-cardTwo-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-setupTwo-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
Sign In Page
blockA 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.