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
  0c5ab52d_2f89_b55c_fde3_25dce973baa9["login-form.tsx"]
  ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"]
  0c5ab52d_2f89_b55c_fde3_25dce973baa9 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  0c5ab52d_2f89_b55c_fde3_25dce973baa9 --> 381135fe_5f7a_910a_b8a2_691e9756a016
  e2659e08_4bcd_4a08_ab57_ce3a18c3b284["field"]
  0c5ab52d_2f89_b55c_fde3_25dce973baa9 --> e2659e08_4bcd_4a08_ab57_ce3a18c3b284
  dc919c5d_820f_f2af_7ccd_a07763a51161["input"]
  0c5ab52d_2f89_b55c_fde3_25dce973baa9 --> dc919c5d_820f_f2af_7ccd_a07763a51161
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  0c5ab52d_2f89_b55c_fde3_25dce973baa9 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 0c5ab52d_2f89_b55c_fde3_25dce973baa9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { cn } from "@/registry/bases/radix/lib/utils"
import { Button } from "@/registry/bases/radix/ui/button"
import {
  Field,
  FieldDescription,
  FieldGroup,
  FieldLabel,
  FieldSeparator,
} from "@/registry/bases/radix/ui/field"
import { Input } from "@/registry/bases/radix/ui/input"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export function LoginForm({
  className,
  ...props
}: React.ComponentProps<"div">) {
  return (
    <div className={cn("flex flex-col gap-6", className)} {...props}>
      <form>
        <FieldGroup>
          <div className="flex flex-col items-center gap-2 text-center">
            <a
              href="#"
              className="flex flex-col items-center gap-2 font-medium"
            >
              <div className="flex size-8 items-center justify-center rounded-md">
                <IconPlaceholder
                  lucide="GalleryVerticalEndIcon"
                  tabler="IconLayoutRows"
                  hugeicons="LayoutBottomIcon"
                  phosphor="RowsIcon"
                  remixicon="RiGalleryLine"
                  className="size-6"
                />
              </div>
              <span className="sr-only">Acme Inc.</span>
            </a>
            <h1 className="text-xl font-bold">Welcome to Acme Inc.</h1>
            <FieldDescription>
              Don&apos;t have an account? <a href="#">Sign up</a>
            </FieldDescription>
          </div>
          <Field>
            <FieldLabel htmlFor="email">Email</FieldLabel>
            <Input
              id="email"
              type="email"
              placeholder="m@example.com"
              required
            />
          </Field>
          <Field>
            <Button type="submit">Login</Button>
          </Field>
          <FieldSeparator>Or</FieldSeparator>
          <Field className="grid gap-4 sm:grid-cols-2">
            <Button variant="outline" type="button">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
                <path
                  d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"
                  fill="currentColor"
                />
              </svg>
              Continue with Apple
            </Button>
            <Button variant="outline" type="button">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
                <path
                  d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
                  fill="currentColor"
                />
              </svg>
              Continue with Google
            </Button>
          </Field>
        </FieldGroup>
      </form>
      <FieldDescription className="px-6 text-center">
        By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
        and <a href="#">Privacy Policy</a>.
      </FieldDescription>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • field
  • icon-placeholder
  • 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, field, icon-placeholder, input, utils.
Where is login-form.tsx in the architecture?
login-form.tsx is located at apps/v4/registry/bases/radix/blocks/login-05/components/login-form.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/blocks/login-05/components).

Analyze Your Own Codebase

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

Try Supermodel Free