Edu Calvo

Auth Form

Sign-in 9

About

A presentation-only sign-in / sign-up form that progressively reveals the password field, animates between modes, and morphs its submit button through submitting/success/error states.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Auth Form to your project and fits it to your theme.

Code

How Auth Form is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import AuthForm from "@/components/ui/auth-form";
import { Globe, Mail } from "lucide-react";
import { useState } from "react";

export default function Demo() {
  const [mode, setMode] = useState<"sign-in" | "sign-up">("sign-in");
  const [status, setStatus] = useState<
    "idle" | "submitting" | "success" | "error"
  >("idle");

  const handleSubmit = () => {
    setStatus("submitting");
    setTimeout(() => setStatus("success"), 1200);
  };

  return (
    <div className="flex w-full items-center justify-center p-8">
      <AuthForm
        mode={mode}
        onModeChange={setMode}
        onSubmit={handleSubmit}
        status={status}
        providers={[
          {
            id: "google",
            label: "Google",
            icon: <Globe className="h-4 w-4" />,
          },
          {
            id: "email",
            label: "Email link",
            icon: <Mail className="h-4 w-4" />,
          },
        ]}
      />
    </div>
  );
}

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    235
  • AI Task List

    AI Task List

    160
  • Siri Orb

    Siri Orb

    160
  • Cursor Follow

    Cursor Follow

    154
  • Pixel Flow Field

    Pixel Flow Field

    142
  • Agent Avatar

    Agent Avatar

    130
  • Gravity Stars

    Gravity Stars

    112
  • Coverflow Carousel

    Coverflow Carousel

    95

More in Sign-in

View all
  • SignInPage

    SignInPage

    631
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Sign In Form

    Sign In Form

    201
  • Clean & Minimal sign in

    Clean & Minimal sign in

    617
  • Sign In

    Sign In

    97
  • Split Sign In Form

    Split Sign In Form

    16
  • Login 2

    Login 2

    7
  • Modern Animated Sign In

    Modern Animated Sign In

    1.1K