Card Login
roi-ui/card-loginFreeItem
A login card component with email/password fields and social login options.
Install it
npx shadcn@latest add https://roiui.com/r/card-login.jsonSource
1"use client";2import { Check } from "lucide-react";3import { Badge } from "@/registry/brook/ui/badge/badge";4import { Button } from "@/registry/brook/ui/button/button";5import { Card, CardContent, CardHeader, CardTitle } from "@/registry/brook/ui/card/card";6import { Checkbox, CheckboxIndicator } from "@/registry/brook/ui/checkbox/checkbox";7import { Field, FieldError, FieldLabel } from "@/registry/brook/ui/field/field";8import { Form, FormActions, FormGroup } from "@/registry/brook/ui/form/form";9import { Input } from "@/registry/brook/ui/input/input";10import styles from "./card-login.module.css";1112export default function CardLoginDemo() {13 const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {14 e.preventDefault();15 const formData = new FormData(e.currentTarget);16 console.log("Form submitted:", Object.fromEntries(formData));17 };1819 return (20 <Card className={styles.card}>21 <CardHeader>22 <CardTitle className={styles.cardTitle}>Sign In</CardTitle>23 </CardHeader>24 <CardContent>25 <Form className={styles.form} onSubmit={handleSubmit}>26 <FormGroup>27 <Field className={styles.emailField}>28 <FieldLabel className={styles.fieldLabel}>Email</FieldLabel>29 <Input30 autoComplete="email"31 name="email"32 placeholder="Enter your email…"33 required34 spellCheck={false}35 type="email"36 />37 <FieldError />38 </Field>3940 <Field>41 <div className={styles.passwordLabelRow}>42 <FieldLabel className={styles.fieldLabel}>Password</FieldLabel>43 <button className={styles.forgotPassword} type="button">44 Forgot password?45 </button>46 </div>47 <Input48 autoComplete="current-password"49 name="password"50 placeholder="Enter your password…"51 required52 type="password"53 />54 <FieldError />55 </Field>5657 <label className={styles.checkboxLabel} htmlFor="remember-me">58 <Checkbox defaultChecked={false} id="remember-me" name="rememberMe">59 <CheckboxIndicator>60 <Check size={16} strokeWidth={3} />61 </CheckboxIndicator>62 </Checkbox>63// … truncated
What it pulls in
Other registry items
Files it writes
More from Roi UI
All 123 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Roi UI | Other | Free | no deps · 2 files | |
| Accordion (Tailwind)accordion-tailwind | Roi UI | Other | Free | no deps | |
| AI Chatai-chat | Roi UI | Other | Free | no deps · 2 files | |
| AI Chat (Tailwind)ai-chat-tailwind | Roi UI | Other | Free | no deps | |
| Alertalert | Roi UI | Other | Free | 1 dep · 2 files | |
| Alert Dialogalert-dialog | Roi UI | Other | Free | no deps · 2 files | |
| Alert Dialog (Tailwind)alert-dialog-tailwind | Roi UI | Other | Free | no deps | |
| Alert (Tailwind)alert-tailwind | Roi UI | Other | Free | 1 dep |
