{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "login-page", "title": "Login Page", "description": "Authentication login page with email/password form, remember me checkbox, social auth buttons, and links to register/forgot password.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-form-control.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-button.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-checkbox-radio.json" ], "files": [ { "path": "registry/new-york/login-page/blocks/login-page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface LoginPageProps extends React.HTMLAttributes {\n logo?: React.ReactNode\n logoText?: string\n message?: string\n onSubmit?: (email: string, password: string, remember: boolean) => void\n socialButtons?: React.ReactNode\n registerHref?: string\n forgotPasswordHref?: string\n}\n\nfunction LoginPage({\n className,\n logo,\n logoText = \"AdminLTE\",\n message = \"Sign in to start your session\",\n onSubmit,\n socialButtons,\n registerHref = \"#\",\n forgotPasswordHref = \"#\",\n ...props\n}: LoginPageProps) {\n const [email, setEmail] = React.useState(\"\")\n const [password, setPassword] = React.useState(\"\")\n const [remember, setRemember] = React.useState(false)\n\n const handleSubmit = (e: React.FormEvent) => {\n e.preventDefault()\n onSubmit?.(email, password, remember)\n }\n\n return (\n \n
\n
\n {logo || (\n \n {logoText.slice(0, 5)}\n {logoText.slice(5)}\n \n )}\n
\n\n
\n
\n

\n {message}\n

\n\n
\n
\n setEmail(e.target.value)}\n />\n \n ✉\n \n
\n\n
\n setPassword(e.target.value)}\n />\n \n 🔒\n \n
\n\n
\n \n \n Sign In\n \n
\n
\n\n {socialButtons && (\n
\n

- OR -

\n
\n {socialButtons}\n
\n
\n )}\n
\n
\n\n
\n \n I forgot my password\n \n \n Register a new membership\n \n
\n
\n \n )\n}\n\nexport { LoginPage }\nexport type { LoginPageProps }\n", "type": "registry:component" } ], "type": "registry:block" }