Back to blocks
BlockAuthenticationFree

Auth Card React component

A sign-in, sign-up and forgot-password card in one: social sign-in buttons, email and password fields with inline validation, a show-password toggle, a password strength meter, a loading state driven by your onSubmit promise and a check-your-email screen.

About the Auth Card component

Auth Card is a complete sign-in screen in one card: it switches between Sign in, Sign up and Forgot password, cross-fading the title and smoothly changing height as fields come and go. It has Google, GitHub and Apple buttons above an "or continue with email" divider, email and password fields with a show-password button, a Forgot password? link and a link at the bottom to switch between signing in and signing up.

Fields are checked when people leave them or press the button: an empty or malformed email, a missing password, a missing name, and on sign up a password shorter than minPasswordLength. On sign up a four-bar meter rates the password. onSubmit receives { mode, email, password, name }; while its promise runs the button shows a spinner and the form is disabled, a rejection or a returned string appears as an error above the button, and in forgot mode success switches to a "Check your email" screen.

When to use it

Use it for the login and registration screen of a SaaS app, a dashboard, a members area or a customer portal, centered on its own page or inside a modal.

Pass brand for your logo and termsHref and privacyHref to show the consent line on sign up.

Installation

Add the Auth Card component to your project with the shadcn CLI. It lands in components/auth-card.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/auth-card

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

404 Page Section
Free
SEO-ready
Side Marquee Pricing CTA
$4
Footer Premium
Free
AI Chat Panel
$6
Footer Section
Free
Coverflow Services Hero
$4