Home / Function/ CardLogin() — ui Function Reference

CardLogin() — ui Function Reference

Architecture documentation for the CardLogin() function in card-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  9c13101e_45d5_f77d_813c_faa583386340["CardLogin()"]
  87a19b49_f9c9_d0f6_82c8_bd14af27311a["card-example.tsx"]
  9c13101e_45d5_f77d_813c_faa583386340 -->|defined in| 87a19b49_f9c9_d0f6_82c8_bd14af27311a
  style 9c13101e_45d5_f77d_813c_faa583386340 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/card-example.tsx lines 45–99

function CardLogin() {
  return (
    <Example title="Login">
      <Card className="mx-auto w-full max-w-sm">
        <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 underline-offset-4 hover:underline"
                  >
                    Forgot your password?
                  </a>
                </div>
                <Input id="password" type="password" required />
              </Field>
            </FieldGroup>
          </form>
        </CardContent>
        <CardFooter className="flex-col gap-2">
          <Button type="submit" className="w-full">
            Login
          </Button>
          <Button variant="outline" className="w-full">
            Login with Google
          </Button>
          <div className="mt-4 text-center">
            Don&apos;t have an account?{" "}
            <a href="#" className="underline underline-offset-4">
              Sign up
            </a>
          </div>
        </CardFooter>
      </Card>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does CardLogin() do?
CardLogin() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/card-example.tsx.
Where is CardLogin() defined?
CardLogin() is defined in apps/v4/registry/bases/base/examples/card-example.tsx at line 45.

Analyze Your Own Codebase

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

Try Supermodel Free