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 2e2ab7c2_d835_b316_4158_d1da780023e1["login-form.tsx"] ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] 2e2ab7c2_d835_b316_4158_d1da780023e1 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 381135fe_5f7a_910a_b8a2_691e9756a016["button"] 2e2ab7c2_d835_b316_4158_d1da780023e1 --> 381135fe_5f7a_910a_b8a2_691e9756a016 11818bc0_4ad2_fa77_9175_f5c44c22af5e["card"] 2e2ab7c2_d835_b316_4158_d1da780023e1 --> 11818bc0_4ad2_fa77_9175_f5c44c22af5e e2659e08_4bcd_4a08_ab57_ce3a18c3b284["field"] 2e2ab7c2_d835_b316_4158_d1da780023e1 --> e2659e08_4bcd_4a08_ab57_ce3a18c3b284 dc919c5d_820f_f2af_7ccd_a07763a51161["input"] 2e2ab7c2_d835_b316_4158_d1da780023e1 --> dc919c5d_820f_f2af_7ccd_a07763a51161 style 2e2ab7c2_d835_b316_4158_d1da780023e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/bases/radix/lib/utils"
import { Button } from "@/registry/bases/radix/ui/button"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/bases/radix/ui/card"
import {
Field,
FieldDescription,
FieldGroup,
FieldLabel,
} from "@/registry/bases/radix/ui/field"
import { Input } from "@/registry/bases/radix/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, 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, field, input, utils.
Where is login-form.tsx in the architecture?
login-form.tsx is located at apps/v4/registry/bases/radix/blocks/login-01/components/login-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/blocks/login-01/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free