Skip to main content
49 · login-pagesForms & Inputs5 Variations

Login Pages

Five distinct sign-in compositions featuring blur/submit email and password validation, accessible show/hide toggles, remember-me controls, loading/success/error states, and documented frontend-only demo behavior.

authloginsign-invalidationaccessibledemo
Centered Login Card
login-pages/centered-login-card
Loading variation login-pages/centered-login-card...

Component Information

Single-column centered card over a subtle architectural grid backdrop with email/password validation, password visibility toggle, remember-me checkbox, forgot-password demo trigger, and simulated error state toggle.

Variation ID
login-pages/centered-login-card
Motion Engine
css
Source File
src/labs/components/components/login-pages/variations/centered-login-card.tsx
Reduced Motion & Accessibility

Static border/ring transitions and subtle loading spinner only.

  • Uses autocomplete="username" and autocomplete="current-password" for password manager autofill.
  • Password toggle exposes aria-pressed and descriptive aria-label.
  • Validation errors appear after blur or submit and route focus to the first invalid control.
Dependencies
  • lucide-react^0.553.0Required

    LockKeyhole, Eye, EyeOff, Loader2, and status icons

Usage Documentation

import { CenteredLoginCard } from '@/src/labs/components/components/login-pages';

export function WorkspaceSignIn() {
  return (
    <CenteredLoginCard
      onSubmit={async (values) => {
        // Connect your real authentication endpoint here
        console.log('Validated login payload:', values.email);
      }}
    />
  );
}

Props API (7)

PropTypeDefaultDescription
headingstring'Sign in to your workspace'Primary card heading wired via aria-labelledby.
brandNamestring'Web Tattva Studio'Brand label shown in card eyebrow.
labelsLoginFormLabels—Customizable input labels, placeholders, and CTA text.
onSubmit(values: LoginFormValues) => Promise<void> | void—Optional backend auth callback; executes frontend demo validation when omitted.
onForgotPassword(currentEmail: string) => void—Optional handler for the forgot-password trigger.
demoOutcome'success' | 'error''success'Simulated response mode when running without onSubmit.
allowOutcomeTogglebooleantrueRenders inline checkbox to preview error state.