Email-Only Login with Social
Centered login card built around one email field plus social login buttons and a legal footer. Use it when the client wants one-click sign-in via Google or Apple instead of a password.
Live preview
open in new tab ↗import { GalleryVerticalEnd } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Field, FieldDescription, FieldGroup, FieldLabel, FieldSeparator } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
export function LoginForm({ className, ...props }) {
return (
<div className={className} {...props}>
<form>
<FieldGroup>
<div className="flex flex-col items-center gap-2 text-center">
<div className="flex size-8 items-center justify-center rounded-md">
<GalleryVerticalEnd className="size-6" />
</div>
<h1 className="text-xl font-bold">Welcome back</h1>
<FieldDescription>Don't have an account? <a href="#">Sign up</a></FieldDescription>
</div>
<Field>
<FieldLabel htmlFor="email">Email</FieldLabel>
<Input id="email" type="email" placeholder="you@example.com" required />
</Field>
<Field>
<Button type="submit">Log in</Button>
</Field>
<FieldSeparator>Or</FieldSeparator>
<Field className="grid gap-4 sm:grid-cols-2">
<Button variant="outline" type="button">Continue with Apple</Button>
<Button variant="outline" type="button">Continue with Google</Button>
</Field>
</FieldGroup>
</form>
<FieldDescription className="px-6 text-center">
By continuing you agree to our Terms of Service and Privacy Policy.
</FieldDescription>
</div>
)
}Block id: shadcn-login-05react-tailwind · swap-content
More form blocks
Want the whole site, not just the block?
We ship real client sites in 3 weeks — with blocks like this one, wired to your brand.



