Login Page
einui/login-pageFreeBlock
A complete login page with email and password authentication, password visibility toggle, remember me option, and social login buttons.
Live preview
live · rendered by the registry
Rendered by einui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.eindev.ir/r/login-page.jsonSource
1"use client"23import { useState } from "react"4import { Eye, EyeOff, LogIn } from "lucide-react"5import { GlassCard, GlassCardContent, GlassCardDescription, GlassCardHeader, GlassCardTitle } from "@/registry/liquid-glass/glass-card"6import { GlassInput } from "@/registry/liquid-glass/glass-input"7import { GlassButton } from "@/registry/liquid-glass/glass-button"8import { Label } from "@/components/ui/label"910export default function LoginPageBlock() {11 const [showPassword, setShowPassword] = useState(false)12 const [email, setEmail] = useState("")13 const [password, setPassword] = useState("")14 const [isLoading, setIsLoading] = useState(false)1516 const handleSubmit = async (e: React.FormEvent) => {17 e.preventDefault()18 setIsLoading(true)19 // Simulate API call20 await new Promise((resolve) => setTimeout(resolve, 2000))21 setIsLoading(false)22 alert(`Logged in with email: ${email}`)23 }2425 return (26 <div className="min-full py-4 flex items-center justify-center bg-linear-to-br from-slate-950 via-purple-900 to-slate-950 px-4">27 <GlassCard className="w-full max-w-md">28 <GlassCardHeader className="space-y-2 text-center">29 <div className="flex justify-center mb-2">30 <div className="p-2 rounded-lg bg-linear-to-br from-cyan-400 to-blue-500">31 <LogIn className="h-6 w-6 text-white" />32 </div>33 </div>34 <GlassCardTitle className="text-xl">Welcome Back</GlassCardTitle>35 <GlassCardDescription>Sign in to your account to continue</GlassCardDescription>36 </GlassCardHeader>3738 <GlassCardContent>39 <form onSubmit={handleSubmit} className="space-y-5">40 {/* Email Input */}41 <div className="space-y-2">42 <Label htmlFor="email" className="text-white/80">43 Email Address44 </Label>45 <GlassInput46 id="email"47 type="email"48 placeholder="you@example.com"49 value={email}50 onChange={(e) => setEmail(e.target.value)}51 required52 className="bg-white/5"53 />54 </div>5556 {/* Password Input */}57 <div className="space-y-2">58 <div className="flex items-center justify-between">59 <Label htmlFor="password" className="text-white/80">60 Password61 </Label>62// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from einui
All 42 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Admin Paneladmin-panel | einui | Blocks | Free | 1 dep | |
| Forgot Password Pageforgot-password-page | einui | Blocks | Free | 1 dep | |
| Pricing Pagepricing-page | einui | Blocks | Free | 1 dep | |
| Sign Up Pagesignup-page | einui | Blocks | Free | 1 dep |
