Login Form

Login Form: Production login form with email/password validation, remember me, show password, loading state, and forgot-password link. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Login Form

npx motion-ui-skill add login-form

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • next
  • react
  • tailwind-merge

Source files

Login Form

Production login form with email/password validation, remember me, show password, loading state, and forgot-password link.

Install

npx motion-ui-skill add login-form

Dependencies

  • clsx
  • lucide-react
  • next
  • react
  • tailwind-merge

Usage

"use client";

import { LoginForm } from "@/components/forms/login-form";

export function LoginFormDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <LoginForm />
    </div>
  );
}

API Reference

LoginForm

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category