Skip to main content
BlocksForgot passwordCentred card with email and back link

shadcn/ui Forgot password block for React AriaCentred card with email and back link

The classic forgot-password screen for shadcn/ui: a centred max-w-sm Card with the logo and wordmark, a title and helper sentence, a single email Input with Label, a full-width "Send reset link" submit Button and a "Back to sign in" link with an ArrowLeft icon in the CardFooter. Drop-in for any product with email/password sign-in.

Free@shadcnpro/aria/forgot-password-01

Preview

Installation

npx shadcn@latest add @shadcnpro/aria/forgot-password-01

First time? Add the @shadcnpro registry to components.json as shown in Installation. Free blocks install without a license key.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Centred card with email and back link from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Centred card with email and back link uses Button, Card, Input and Label, from the React Aria components set up in your components.json.

npx shadcn@latest add button card input label

Install the npm packages

npm install lucide-react

Copy the code

Paste it into components/blocks/forgot-password-01.tsx.

components/blocks/forgot-password-01.tsx
'use client';

import { ArrowLeftIcon } from 'lucide-react';

import { Button } from '@/components/ui/button';
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';

/**
 * Centred forgot-password Card: logo, title, helper copy, a single email field, a full-width submit and a back link.
 */
export default function ForgotPassword01() {
  return (
    <div className="w-full max-w-sm px-4 py-8">
      <Card className="w-full">
        <CardHeader className="justify-items-center text-center">
          <a className="mb-2 flex items-center gap-2" href="#">
            <img alt="" className="size-8 rounded-lg object-cover" src="/logo.png" />
            <span className="font-semibold text-foreground text-lg">Beacon</span>
          </a>
          <CardTitle className="font-semibold text-2xl tracking-tight">
            Forgot your password?
          </CardTitle>
          <CardDescription className="text-pretty">
            Enter the email you use for Beacon and we&apos;ll send a link to
            set a new password.
          </CardDescription>
        </CardHeader>
        <form onSubmit={(e) => e.preventDefault()}>
          <CardContent className="space-y-4">
            <div className="space-y-1.5">
              <Label htmlFor="forgot01-email">Email</Label>
              <Input
                autoComplete="email"
                id="forgot01-email"
                name="email"
                placeholder="maja@auroralabs.io"
                type="email"
              />
            </div>
            <Button className="w-full" type="submit">
              Send reset link
            </Button>
          </CardContent>
        </form>
        <CardFooter className="justify-center">
          <a
            className="inline-flex items-center gap-1.5 text-muted-foreground text-sm hover:text-foreground"
            href="#"
          >
            <ArrowLeftIcon aria-hidden="true" className="size-4" />
            Back to sign in
          </a>
        </CardFooter>
      </Card>
    </div>
  );
}

Use it

Import it where you need it and update the import path to match your project.

Usage
import ForgotPassword01 from '@/components/blocks/forgot-password-01';

export default function Page() {
  return <ForgotPassword01 />;
}

Overview

Centred card with email and back link is a free forgot password block for shadcn/ui and React Aria. It is built from the Button, Card, Input and Label components with lucide-react, and installs as a single file you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Component library
React Aria (react-aria-components)
Also available for
Radix UI, Base UI
Built with
Button, Card, Input and Label
npm packages
lucide-react
Files
components/blocks/forgot-password-01.tsx
Access
Free, installs without a license key

Frequently asked questions

Pricing, installation and React Aria details for Centred card with email and back link.