Forgot passwordPro
Password reset: request link, resend timer, new password and done state.
What's inside
- Request link
- Resend timer
- New password with rules
- Done state
When to use
- The reset-password page of any app with email and password.
When not to use
- Passwordless apps.
Installation
Usage
Import it from @/components/blocks/forgot-password after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
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>
);
}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.
This page as Markdown, for assistants and coding agents:
/blocks/forgot-password/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt