263
Ask for a reset link, then a confirmation with the address it went to, a resend countdown and a way back to sign in.
akaforgot password·reset·email
Run this in any project set up for the shadcn CLI. It copies the Forgot Password source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/forgot-password.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { ForgotPassword } from "@/components/forgot-password";
export default function Page() {
return <ForgotPassword />;
}A free React screen in the Auth collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Forgot Password source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| defaultEmail | string | "" |
| resendAfter | number | 30 |
| onSend | (email: string) => Promise<void> | demoSend |
| onSignIn | () => void | — |
| className | string | — |