Login with Email, Password and Google
blocks/login-02FreeBlock
A login with email, password and google block.
Install it
npx shadcn@latest add https://blocks.so/r/login-02.jsonSource
1import type { JSX, SVGProps } from 'react';2import { Button, buttonVariants } from '@/components/ui/button';3import { Input } from '@/components/ui/input';4import { Label } from '@/components/ui/label';5import { Separator } from '@/components/ui/separator';6import { cn } from '@/lib/utils';78const GoogleIcon = (9 props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>10) => (11 <svg fill="currentColor" viewBox="0 0 24 24" {...props}>12 <path d="M3.06364 7.50914C4.70909 4.24092 8.09084 2 12 2C14.6954 2 16.959 2.99095 18.6909 4.60455L15.8227 7.47274C14.7864 6.48185 13.4681 5.97727 12 5.97727C9.39542 5.97727 7.19084 7.73637 6.40455 10.1C6.2045 10.7 6.09086 11.3409 6.09086 12C6.09086 12.6591 6.2045 13.3 6.40455 13.9C7.19084 16.2636 9.39542 18.0227 12 18.0227C13.3454 18.0227 14.4909 17.6682 15.3864 17.0682C16.4454 16.3591 17.15 15.3 17.3818 14.05H12V10.1818H21.4181C21.5364 10.8363 21.6 11.5182 21.6 12.2273C21.6 15.2727 20.5091 17.8363 18.6181 19.5773C16.9636 21.1046 14.7 22 12 22C8.09084 22 4.70909 19.7591 3.06364 16.4909C2.38638 15.1409 2 13.6136 2 12C2 10.3864 2.38638 8.85911 3.06364 7.50914Z" />13 </svg>14);1516export default function Login02() {17 return (18 <div className="flex min-h-dvh items-center justify-center">19 <div className="flex flex-1 flex-col justify-center px-4 py-10 lg:px-6">20 <div className="sm:mx-auto sm:w-full sm:max-w-sm">21 <h2 className="text-balance text-center font-semibold text-foreground text-xl">22 Log in or create account23 </h2>24 <form action="#" className="mt-6 space-y-4" method="post">25 <div>26 <Label27 className="font-medium text-foreground text-sm dark:text-foreground"28 htmlFor="email-login-02"29 >30 Email31 </Label>32 <Input33 autoComplete="email"34 className="mt-2"35 id="email-login-02"36 name="email-login-02"37 placeholder="ephraim@blocks.so"38 type="email"39 />40 </div>41 <div>42 <Label43 className="font-medium text-foreground text-sm dark:text-foreground"44 htmlFor="password-login-02"45 >46 Password47 </Label>48 <Input49 autoComplete="password"50 className="mt-2"51 id="password-login-02"52 name="password-login-02"53// … truncated
What it pulls in
Other registry items
Files it writes
More from blocks
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| AI Chat with Voice Inputai-01 | blocks | Blocks | Free | 1 dep | |
| AI Chat with Model Selectionai-02 | blocks | Blocks | Free | 1 dep | |
| AI Chat Compact Interfaceai-03 | blocks | Blocks | Free | 1 dep | |
| AI Chat with File Attachmentsai-04 | blocks | Blocks | Free | 1 dep | |
| AI Elements Chatai-05 | blocks | Blocks | Free | 2 deps | |
| Command Menu with Groupscommand-menu-01 | blocks | Blocks | Free | 1 dep | |
| Command Menu with Keyboard Shortcutscommand-menu-02 | blocks | Blocks | Free | 1 dep | |
| Command Menu with Documentation Searchcommand-menu-03 | blocks | Blocks | Free | 1 dep |
