Components
<ForgotPasswordForm />
Form for users to request a password reset link or code.
The <ForgotPasswordForm /> allows users to recover their account by sending a reset link or code to their email.
Installation
pnpm dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonnpx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonyarn dlx shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonbun x shadcn@latest add https://stackproviders.github.io/better-auth-ui/r/auth.jsonUsage
import { ForgotPasswordForm } from "@/components/auth/forms/forgot-password-form";
export default function ForgotPasswordPage() {
return <ForgotPasswordForm />;
}Reference
| Prop | Type | Default |
|---|---|---|
setIsSubmitting? | ((value: boolean) => void) | - |
localization | Partial<Partial<{ INVALID_USERNAME_OR_PASSWORD: string; EMAIL_NOT_VERIFIED: string; UNEXPECTED_ERROR: string; USERNAME_IS_ALREADY_TAKEN: string; USERNAME_TOO_SHORT: string; USERNAME_TOO_LONG: string; ... 358 more ...; UNKNOWN: string; }>> | - |
isSubmitting? | boolean | - |
classNames? | AuthFormClassNames | - |
className? | string | - |