About
A login form with an email-or-phone identifier field, password/PIN visibility toggle, remember-me checkbox, inline validation, and optional social sign-in buttons, for building an app's sign-in screen.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Auth Login Screen to your project and fits it to your theme.
Code
How Auth Login Screen is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import LoginScreen from "@/components/ui/auth-login";
export default function AuthLoginDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center bg-background p-6">
<LoginScreen
title="Log in"
subtitle="Continue to your account."
identifierType="both"
secretType="password"
onSubmit={async ({ secret }) => {
await new Promise((resolve) => setTimeout(resolve, 1200));
if (secret !== "demo1234") {
return { error: "Invalid credentials. Try password: demo1234" };
}
}}
footer={
<span className="text-muted-foreground">
Don't have an account?{" "}
<a href="#" className="font-medium text-brand hover:underline">
Sign up
</a>
</span>
}
/>
</div>
);
}














