# Reset Password 3

A shadcn/ui block from the [@diarmuradi](https://diarmuradi.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/diarmuradi/reset-password-3).

- Page, with a live preview: https://shadcn.exchange/r/diarmuradi/reset-password-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/diarmuradi/reset-password-3-light-07d9da21a70cc780.png
- Registry item: https://diarmuradi.com/r/reset-password-3.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://diarmuradi.com/r/reset-password-3.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `https://diarmuradi.com/r/styles/base-nova/avatar.json`, `https://diarmuradi.com/r/styles/base-nova/button.json`, `https://diarmuradi.com/r/styles/base-nova/fancy-button.json`, `https://diarmuradi.com/r/styles/base-nova/field.json`, `https://diarmuradi.com/r/styles/base-nova/input.json`

## Files

### `reset-password.tsx`

```tsx
"use client"

import { useId } from "react"
import Link from "next/link"

import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"
import { Field, FieldGroup, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
import { FancyButton } from "@/components/ui/fancy-button"
import { LockKeyholeIcon, StarIcon } from 'lucide-react'

export function ResetPassword() {
  const id = useId()
  return (
    <main
      aria-label="Reset password"
      className="grid min-h-svh w-full grid-cols-1 text-foreground motion-reduce:**:animate-none motion-reduce:**:transition-none lg:grid-cols-2 lg:p-2"
    >
      <section className="flex flex-col items-center justify-center">
        <div className="flex max-w-sm flex-col items-center gap-4">
          <div className="relative flex size-14 items-center justify-center">
            <div className="absolute inset-0 scale-125 rounded-full bg-primary/10 mask-b-from-20% mask-b-to-100%" />
            <div className="relative z-10 flex size-14 items-center justify-center rounded-full bg-card ring ring-primary/10 ring-inset">
              <LockKeyholeIcon  aria-hidden="true" className="size-6 text-primary" />
            </div>
          </div>
          <div className="text-center">
            <h1 className="text-xl font-semibold tracking-tight text-balance sm:text-2xl">
              Reset password
            </h1>
            <p className="text-base text-muted-foreground">
              Enter your email to reset your password.
            </p>
          </div>
        </div>

        <div className="flex w-full max-w-sm flex-col gap-6">
          <FieldGroup className="gap-3">
            <Field className="gap-1">
              <FieldLabel htmlFor={`${id}-email`}>Email</FieldLabel>
              <Input
                id={`${id}-email`}
                type="email"
                placeholder="contact@diarmuradi.com"
                className="h-10 bg-transparent"
              />
            </Field>

            <FancyButton type="button" size="lg" className="w-full">
              Reset password
            </FancyButton>
          </FieldGroup>

          <div className="flex flex-col items-center gap-1 text-center text-sm text-muted-foreground sm:flex-row sm:justify-center">
            <span>Know your password?</span>
            <Button
              variant="link"
              className="h-auto p-0"
              nativeButton={false}
              role="link"
              render={<Link href="/sign-in" />}
            >
              Sign in instead
            </Button>
          </div>
        </div>
      </section>

      <div className="relative flex flex-col justify-end overflow-hidden rounded-4xl bg-muted p-12 max-lg:hidden">
        <div className="pointer-events-none absolute inset-0 bg-linear-to-t from-primary/25 via-primary/10 to-transparent" />
        <div className="relative flex flex-col gap-6">
          <div className="flex gap-0.5">
            {[1, 2, 3, 4, 5].map((rating) => (
              <StarIcon  aria-hidden="true" key={rating} className="size-4 fill-primary text-primary" />
            ))}
          </div>
          <p className="text-lg leading-relaxed">
            &ldquo;Password recovery was{" "}
            <span className="font-medium text-primary">instant</span>. I was
            back in my account before my coffee got cold.&rdquo;
          </p>
          <div className="flex items-center gap-3">
            <Avatar className="size-10">
              <AvatarImage
                src="https://github.com/raunofreiberg.png"
                alt="Rauno Freiberg"
              />
              <AvatarFallback>R</AvatarFallback>
            </Avatar>
            <div>
              <p className="text-sm font-semibold">Rauno Freiberg</p>
              <p className="text-xs text-muted-foreground">Design engineer</p>
            </div>
          </div>
        </div>
      </div>
    </main>
  )
}
```
