Email Login

A full-featured email login form with customizable branding and theme support

Zezo Email Login Component

Loading...

📦 Installation

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

💡 Usage Example

import EmailLogin from "@/components/zezo/auth/LoginWithEmail";

<EmailLogin
  onSubmit={(data) => {
    console.log("Email:", data.email);
    console.log("Password:", data.password);
  }}
  isLoading={false}
  error=""
/>

📘 Props

PropTypeRequiredDescription
onSubmit(data: { email: string; password: string }) => voidOptionalCallback function called when form is submitted
goBack() => voidOptionalCallback for back navigation (shows back button)
isLoadingbooleanOptionalLoading state for submit button (default: false)
errorstringOptionalError message displayed in red below form
logoUrlstringOptionalURL of logo image displayed at top (has default)
titlestringOptionalMain heading text (default: "Welcome back!")
subtitlestringOptionalSubtitle text below title (has default)
rightImageUrlstringOptionalRight side background image URL (hidden on mobile, has default)
continueButtonTextstringOptionalSubmit button text (default: "Login")
phoneLoginTextstringOptionalText for phone login link (default: "Login with Phone")
signUpTextstringOptionalSign up link text (default: "Don't have an account? Sign up")
forgotPasswordLinkstringOptionalForgot password link URL (default: "/forgot-password")
backgroundColorstringOptionalCustom background color (overrides theme)

✨ Features

📧 Email & Password

Standard email/password authentication

👁️ Password Toggle

Show/hide password visibility

🔄 Phone Login Alternative

Quick switch to phone login

🔙 Back Navigation

Optional back button with callback

🎨 Customizable Branding

Logo, title, subtitle, and right image

🌓 Dark Mode

Automatic theme support

🔗 Link Integration

Forgot password and sign up links

⚡ Loading States

Built-in loading and error handling

📱 Responsive

Mobile-first responsive design

🎯 Theme Colors

Integrates with dynamic theme colors