Login with Email and Google
blocks/login-01FreeBlock
A login with email and google block.
Install it
npx shadcn@latest add https://blocks.so/r/login-01.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 Login01() {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" method="post">25 <Label className="font-medium text-foreground" htmlFor="email">26 Email27 </Label>28 <Input29 autoComplete="email"30 className="mt-2"31 id="email"32 name="email"33 placeholder="john@company.com"34 type="email"35 />36 <Button className="mt-4 w-full" type="submit">37 Sign in38 </Button>39 </form>4041 <div className="relative my-6">42 <div className="absolute inset-0 flex items-center">43 <Separator className="w-full" />44 </div>45 <div className="relative flex justify-center text-xs uppercase">46 <span className="bg-background px-2 text-muted-foreground">47 or with48 </span>49 </div>50 </div>5152 <a53 className={cn(54// … 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 |
