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="[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>
  );
}

More by amankaushik481

View all
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    5
  • Background Boxes

    Background Boxes

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Typing Text

    Typing Text

    1
  • Treemap Chart

    Treemap Chart

    1
  • Particles

    Particles

    1

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198