Forgot Password Request
A simple, full-height password recovery screen: a centered icon, a single email field, a Send reset link button, and a link back to sign in. A static, server-rendered block with no client-side state.
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/forgot-password-request.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth4.tsx instead.
Usage
The file also exports auth4Demo, 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 { Auth4, auth4Demo } from "@/components/blocks/auth/auth4"; export default function Page() { return <Auth4 {...auth4Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| icon | LucideIcon | KeyRound | Icon shown in the circle above the heading. |
| heading | string | "Forgot your password?" | Screen heading. |
| description | string | "Enter the email address associated with your account and we'll send you a link to reset your password." | Short description shown under the heading. |
| submitLabel | string | "Send reset link" | Label on the submit button. |
| backToSignInHref | string | "#" | Link target for the back-to-sign-in link. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- This block is a plain server component, no useState or useEffect: the form submit and the Send reset link button are entirely decorative, nothing is sent anywhere.
- icon accepts any lucide-react icon component and is safe to pass as a prop since this block never crosses a client-component boundary.
- Back to sign in renders as a real Next.js Link via the button's render prop, defaulting to "#" until you supply your own href.
More Auth Blocks
View all →centered-sign-in-card
Centered Sign In Card
Full-height centered sign-in card with social buttons, a password show/hide toggle, and remember-me.
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.
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.