Forgot Password

A clean forgot password form with customizable branding and theme support

Zezo Forgot Password Component

Logo

Forgot Password

Enter your email to reset your password

Remembered your password? Login

📦 Installation

pnpm dlx shadcn@latest add https://zezo-ui.vercel.app/r/zezo-auth.json

💡 Usage Example

import ForgotPassword from "@/components/zezo/auth/ForgotPassword";

<ForgotPassword
  onSubmit={(data) => {
    console.log("Email:", data.email);
    // Send reset link to email
  }}
  isLoading={false}
  error=""
/>

📘 Props

PropTypeRequiredDescription
onSubmit(data: { email: string }) => voidOptionalCallback function called when form is submitted
isLoadingbooleanOptionalLoading state for submit button (default: false)
goBack() => voidOptionalCallback for back navigation (shows back button)
errorstringOptionalError message displayed in red below input
titlestringOptionalMain heading text (default: "Forgot Password")
subtitlestringOptionalSubtitle text below title (default: "Enter your email to reset your password")
inputPlaceholderstringOptionalEmail input placeholder (default: "you@example.com")
buttonTextstringOptionalSubmit button text (default: "Send Reset Link")
loginLinkstringOptionalLogin page link URL (default: "/login")
logoUrlstringOptionalLogo image URL displayed at top (has default)
backgroundImageUrlstringOptionalRight side background image URL (hidden on mobile, has default)
backgroundColorstringOptionalCustom background color (overrides theme)

✨ Features

📧 Email Input

Simple email input field for password reset

🔙 Back Navigation

Optional back button with callback

🔗 Login Link

Quick link back to login page

🎨 Customizable Branding

Logo, title, subtitle, and background image

🌓 Dark Mode

Automatic theme support

⚡ Loading States

Built-in loading and error handling

📱 Responsive

Mobile-first responsive design

🎯 Theme Colors

Integrates with dynamic theme colors