Staaarter

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.

By Staaarter Team
Auth
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
iconLucideIconKeyRoundIcon shown in the circle above the heading.
headingstring"Forgot your password?"Screen heading.
descriptionstring"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.
submitLabelstring"Send reset link"Label on the submit button.
backToSignInHrefstring"#"Link target for the back-to-sign-in link.
classNamestringnoneExtra 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.