Docs/BLOCKS/Auth — Login

A cinematic, dark-themed, glassmorphic login screen block with animated noise background effects and floating grid elements. Fully accessible, responsive, and ready to be dropped into any Next.js application.

Installation#

$ pnpm dlx @gwenui/cli add login

File Structure#

auth-login/
├── index.tsx                    # Main entry point
├── components/
   ├── LoginForm.tsx            # Full login form with validation
   └── OAuthButtons.tsx         # Google & GitHub OAuth buttons
└── block.json                   # Block metadata configuration

Usage#

import { LoginForm } from "@/components/auth-login/LoginForm";
 
export default function LoginPage() {
  return <LoginForm />;
}

Props#

PropTypeDefaultDescription
showOAuthbooleantrueShow Google and GitHub OAuth buttons below the form.
showRememberMebooleantrueDisplay the remember-me checkbox above the submit button.
classNamestring""Extra Tailwind classes on the root layout container.

Dependencies#

PackagePurpose
framer-motionBackground noise animation & form transitions
lucide-reactVector icon library
@radix-ui/react-slotAccessible button composition
Next.js 16TypeScriptTailwindRadix UI
Made by JinXSuper with Gwen 🧡