Home / File/ login-form.tsx — ui Source File

login-form.tsx — ui Source File

Architecture documentation for login-form.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  eac36728_50cb_38c2_fb55_0795f34d9469["login-form.tsx"]
  7758fdd8_25c1_a333_03ce_5e171102a1ec["utils"]
  eac36728_50cb_38c2_fb55_0795f34d9469 --> 7758fdd8_25c1_a333_03ce_5e171102a1ec
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  eac36728_50cb_38c2_fb55_0795f34d9469 --> 57e86e45_ac6e_7278_be08_9092724e8401
  c6d6139d_ea69_3d79_5004_68419bae2ac0["card"]
  eac36728_50cb_38c2_fb55_0795f34d9469 --> c6d6139d_ea69_3d79_5004_68419bae2ac0
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  eac36728_50cb_38c2_fb55_0795f34d9469 --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  eac36728_50cb_38c2_fb55_0795f34d9469 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  style eac36728_50cb_38c2_fb55_0795f34d9469 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { cn } from "@/registry/new-york-v4/lib/utils"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york-v4/ui/card"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
} from "@/registry/new-york-v4/ui/field"
import { Input } from "@/registry/new-york-v4/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&apos;t have an account? <a href="#">Sign up</a>
                </FieldDescription>
              </Field>
            </FieldGroup>
          </form>
        </CardContent>
      </Card>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • card
  • field
  • input
  • utils

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/new-york-v4/blocks/login-01/components/login-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/blocks/login-01/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free