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 9dcb6dcb_a824_62bc_748f_b9c1e505d176["login-form.tsx"] fa33de9d_1503_ccb3_215b_d382edac4a09["utils"] 9dcb6dcb_a824_62bc_748f_b9c1e505d176 --> fa33de9d_1503_ccb3_215b_d382edac4a09 d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] 9dcb6dcb_a824_62bc_748f_b9c1e505d176 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31["card"] 9dcb6dcb_a824_62bc_748f_b9c1e505d176 --> 40a08bc2_b80f_cbb3_c3f5_f3ceafbb7d31 163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"] 9dcb6dcb_a824_62bc_748f_b9c1e505d176 --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60 f826d306_7d63_5ba3_6a53_387904d37a9f["label"] 9dcb6dcb_a824_62bc_748f_b9c1e505d176 --> f826d306_7d63_5ba3_6a53_387904d37a9f style 9dcb6dcb_a824_62bc_748f_b9c1e505d176 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/default/lib/utils"
import { Button } from "@/registry/default/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/default/ui/card"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"
export function LoginForm({
className,
...props
}: React.ComponentPropsWithoutRef<"div">) {
return (
<div className={cn("flex flex-col gap-6", className)} {...props}>
<Card>
<CardHeader>
<CardTitle className="text-2xl">Login</CardTitle>
<CardDescription>
Enter your email below to login to your account
</CardDescription>
</CardHeader>
<CardContent>
<form>
<div className="flex flex-col gap-6">
<div className="grid gap-2">
<Label htmlFor="email">Email</Label>
<Input
id="email"
type="email"
placeholder="m@example.com"
required
/>
</div>
<div className="grid gap-2">
<div className="flex items-center">
<Label htmlFor="password">Password</Label>
<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 />
</div>
<Button type="submit" className="w-full">
Login
</Button>
<Button variant="outline" className="w-full">
Login with Google
</Button>
</div>
<div className="mt-4 text-center text-sm">
Don't have an account?{" "}
<a href="#" className="underline underline-offset-4">
Sign up
</a>
</div>
</form>
</CardContent>
</Card>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- input
- label
- 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, ChartRegistry 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, input, label, utils.
Where is login-form.tsx in the architecture?
login-form.tsx is located at deprecated/www/registry/default/blocks/login-01/components/login-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/blocks/login-01/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free