8-bit Login Form
8bitcn/login-formFreeBlock
A simple 8-bit login form component
Install it
npx shadcn@latest add https://www.8bitcn.com/r/login-form.jsonSource
1import { cn } from "@/lib/utils";23import { Button } from "@/components/ui/8bit/button";4import {5 Card,6 CardContent,7 CardDescription,8 CardHeader,9 CardTitle,10} from "@/components/ui/8bit/card";11import { Input } from "@/components/ui/8bit/input";12import { Label } from "@/components/ui/8bit/label";1314export function LoginForm({15 className,16 ...props17}: React.ComponentPropsWithoutRef<"div">) {18 return (19 <div className={cn("flex flex-col gap-6", className)} {...props}>20 <Card>21 <CardHeader>22 <CardTitle className="text-2xl">Login</CardTitle>23 <CardDescription className="text-xs">24 Enter your email below to login to your account25 </CardDescription>26 </CardHeader>27 <CardContent>28 <form>29 <div className="flex flex-col gap-6">30 <div className="grid gap-2">31 <Label htmlFor="email">Email</Label>32 <Input33 id="email"34 type="email"35 placeholder="m@example.com"36 required37 />38 </div>39 <div className="grid gap-2">40 <div className="flex flex-col md:flex-row md:items-center justify-between gap-2">41 <Label htmlFor="password">Password</Label>42 <a43 href="#"44 className="inline-block text-xs underline-offset-4 hover:underline"45 >46 Forgot password?47 </a>48 </div>49 <Input id="password" type="password" required />50 </div>51 <Button type="submit" className="w-full">52 Login53 </Button>54 <Button variant="outline" className="w-full">55 Login with Google56 </Button>57 </div>58 <div className="mt-4 text-center text-xs">59 Don't have an account?{" "}60 <a href="#" className="underline underline-offset-4">61 Sign up62 </a>63 </div>64 </form>65 </CardContent>66 </Card>67 </div>68 );69}
What it pulls in
Other registry items
Files it writes
More from 8bitcn
All 121 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 8-bit Advanced 1advanced1 | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Advanced 2advanced2 | 8bitcn | Blocks | Free | no deps · 5 files | |
| 8-bit Advanced 3advanced3 | 8bitcn | Blocks | Free | no deps · 6 files | |
| 8-bit Audio Settingsaudio-settings | 8bitcn | Blocks | Free | 2 deps · 7 files | |
| 8-bit Chapter Introchapter-intro | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Character Sheetcharacter-sheet | 8bitcn | Blocks | Free | no deps · 9 files | |
| 8-bit Chartchart | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Chart Area Stepchart-area-step | 8bitcn | Blocks | Free | no deps · 3 files |
