login-form.tsx — ui Source File
Architecture documentation for login-form.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 666f2e21_38a3_9ba2_91a4_5b51a36da9db["login-form.tsx"] 8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"] 666f2e21_38a3_9ba2_91a4_5b51a36da9db --> 8ad666ec_1b20_adda_0392_87a60bdb3a68 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 666f2e21_38a3_9ba2_91a4_5b51a36da9db --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 deffd1e6_798d_b7fd_c687_7ccabc947893["card"] 666f2e21_38a3_9ba2_91a4_5b51a36da9db --> deffd1e6_798d_b7fd_c687_7ccabc947893 8a527dea_9425_3da4_8ceb_ec3058568dc9["field"] 666f2e21_38a3_9ba2_91a4_5b51a36da9db --> 8a527dea_9425_3da4_8ceb_ec3058568dc9 106d51d9_3961_e810_478c_8a9c54987d20["input"] 666f2e21_38a3_9ba2_91a4_5b51a36da9db --> 106d51d9_3961_e810_478c_8a9c54987d20 style 666f2e21_38a3_9ba2_91a4_5b51a36da9db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/bases/base/lib/utils"
import { Button } from "@/registry/bases/base/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/bases/base/ui/card"
import {
Field,
FieldDescription,
FieldGroup,
FieldLabel,
} from "@/registry/bases/base/ui/field"
import { Input } from "@/registry/bases/base/ui/input"
export function LoginForm({
className,
...props
}: React.ComponentProps<"div">) {
return (
<div className={cn("flex flex-col gap-6", className)} {...props}>
<Card>
<CardHeader>
<CardTitle>Login to your account</CardTitle>
<CardDescription>
Enter your email below to login to your account
</CardDescription>
</CardHeader>
<CardContent>
<form>
<FieldGroup>
<Field>
<FieldLabel htmlFor="email">Email</FieldLabel>
<Input
id="email"
type="email"
placeholder="m@example.com"
required
/>
</Field>
<Field>
<div className="flex items-center">
<FieldLabel htmlFor="password">Password</FieldLabel>
<a
href="#"
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
>
Forgot your password?
</a>
</div>
<Input id="password" type="password" required />
</Field>
<Field>
<Button type="submit">Login</Button>
<Button variant="outline" type="button">
Login with Google
</Button>
<FieldDescription className="text-center">
Don't have an account? <a href="#">Sign up</a>
</FieldDescription>
</Field>
</FieldGroup>
</form>
</CardContent>
</Card>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- field
- input
- utils
Source
Frequently Asked Questions
What does login-form.tsx do?
login-form.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in login-form.tsx?
login-form.tsx defines 1 function(s): LoginForm.
What does login-form.tsx depend on?
login-form.tsx imports 5 module(s): button, card, field, input, utils.
Where is login-form.tsx in the architecture?
login-form.tsx is located at apps/v4/registry/bases/base/blocks/login-01/components/login-form.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/blocks/login-01/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free