# Forgot password

> Password reset: request link, resend timer, new password and done state.

Block · Pro · https://lodeui.com/blocks/forgot-password

## When to use

- The reset-password page of any app with email and password.

## When not to use

- Passwordless apps.

## Installation

```bash
npx shadcn@latest add @lode/forgot-password
```

Pro: needs a Lode API key and the `@lode` registry in components.json. See https://lodeui.com/docs/cli.

npm dependencies: motion, lucide-react

## Usage

```tsx title="example.tsx"
import { ForgotPassword } from "@/components/blocks/forgot-password";

export default function Page() {
  return (
    <main className="grid min-h-dvh place-items-center p-6">
      <ForgotPassword />
    </main>
  );
}
```

Built from: Password strength

## API reference

### ForgotPassword

Password reset: request a link, a check-your-inbox step with a resend timer, choose a new password with rules, and a done state. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.

No props.

## Keyboard interactions

| Keys | Action |
| --- | --- |
| Enter | Submit each step |
| Tab | Reach resend and back |

## Accessibility

- Never reveals whether an email exists ("If an account exists…").
- Errors use role="alert"; the done state is announced.

## Motion

- The icon morphs per step; content slides between steps.

## Responsive behavior

- Up to 384px wide.

## Performance

- A one-second timer only while resend is cooling down.

## Notes for AI

- The "Open the link" button stands in for the emailed link; route your real link to the reset stage with its token.

## Related

- [Sign in](https://lodeui.com/blocks/sign-in) — Password or magic link, SSO and GitHub, inline validation and a check-your-email state.
- [Sign up](https://lodeui.com/blocks/sign-up) — Three-step sign-up: account, password with live rules and email code verification.
- [Password strength](https://lodeui.com/components/password-strength) — New-password field with show / hide, a four-step meter and a live rules checklist.
