amankaushik481

Auth Card

Cards

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="you@company.com"
            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>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    46
  • Course Design Cards

    Course Design Cards

    1.3K
  • Liquid Glass Card

    Liquid Glass Card

    202
  • Statistics Card 2

    Statistics Card 2

    321
  • Card Studio

    Card Studio

    37
  • Astryx Clickable Card

    Astryx Clickable Card

    1
  • Admin Dashboard Cards

    Admin Dashboard Cards

    40
  • Statistics Card 10

    Statistics Card 10

    307