Home / Function/ LoginForm() — ui Function Reference

LoginForm() — ui Function Reference

Architecture documentation for the LoginForm() function in login-form.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  1ddf0a0f_41d6_0147_1079_10d64a65eee2["LoginForm()"]
  2e2ab7c2_d835_b316_4158_d1da780023e1["login-form.tsx"]
  1ddf0a0f_41d6_0147_1079_10d64a65eee2 -->|defined in| 2e2ab7c2_d835_b316_4158_d1da780023e1
  style 1ddf0a0f_41d6_0147_1079_10d64a65eee2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/login-01/components/login-form.tsx lines 18–70

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

Frequently Asked Questions

What does LoginForm() do?
LoginForm() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/login-01/components/login-form.tsx.
Where is LoginForm() defined?
LoginForm() is defined in apps/v4/registry/bases/radix/blocks/login-01/components/login-form.tsx at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free