Centered Sign In Card
A full-height, centered sign-in screen: social login buttons up top, an email and password form below with a show/hide password toggle and a remember-me checkbox, plus a forgot-password link. Ideal as a standalone auth page.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/centered-sign-in-card.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth1.tsx instead.
Usage
The file also exports auth1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Auth1, auth1Demo } from "@/components/blocks/auth/auth1"; export default function Page() { return <Auth1 {...auth1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Welcome back" | Card heading. |
| description | string | "Sign in to your account to continue." | Short subheading under the heading. |
| forgotPasswordHref | string | "#" | Link target for the Forgot password action. |
| signUpHref | string | "#" | Link target for the Sign up action. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The show/hide password toggle is real client-side state: clicking the eye icon switches the input between type="password" and type="text".
- The Google and GitHub buttons, the remember-me checkbox, and the form submit are decorative only, nothing is sent anywhere and no account is created.
- Forgot password and Sign up render as real Next.js Link components via the button's render prop, but both default to "#" until you supply your own hrefs.
More Auth Blocks
View all →split-screen-sign-up
Split-Screen Sign Up
Two-column registration screen with a sign-up form on one side and a full-bleed photo with a customer quote on the other.
email-verification-code
Email Verification Code
Full-height OTP screen with a 6-digit segmented code input, auto-advancing focus, and a live resend countdown.
forgot-password-request
Forgot Password Request
Full-height password recovery screen with a single email field, a send-reset-link button, and a back-to-sign-in link.
set-new-password
Set New Password
Full-height reset-password screen with independent show/hide toggles per field and a live password-requirements checklist.
magic-link-sign-in
Magic Link Sign In
Full-height passwordless sign-in screen with an email field, a send-magic-link button, and social login as a fallback.
account-chooser
Account Chooser
Full-height account picker listing saved accounts with avatars, plus a Use another account row.