About
A centered sign-in/sign-up card layout with a title, optional description, a body area for form fields and social providers, and a divided footer for a switch or reset link.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Auth Card to your project and fits it to your theme.
Code
How Auth Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { AuthCard } from "@/components/ui/auth-card";
export default function AuthCardDemo() {
return (
<div className="flex min-h-[600px] w-full items-center justify-center bg-bg p-6">
<AuthCard
title="Sign in"
description="Use your work email to continue."
footer={
<>
No account?{" "}
<a href="#" className="text-accent-fg">
Sign up
</a>
</>
}
>
<div className="space-y-1">
<label htmlFor="email" className="text-sm font-medium text-fg">
Email
</label>
<input
id="email"
type="email"
autoComplete="email"
placeholder="[email protected]"
className="w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-fg outline-none"
/>
</div>
<div className="space-y-1">
<label htmlFor="password" className="text-sm font-medium text-fg">
Password
</label>
<input
id="password"
type="password"
autoComplete="current-password"
className="w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-fg outline-none"
/>
</div>
<button
type="submit"
className="w-full rounded-md bg-fg px-3 py-2 text-sm font-medium text-bg"
>
Continue
</button>
</AuthCard>
</div>
);
}















