Home / File/ create-account.tsx — ui Source File

create-account.tsx — ui Source File

Architecture documentation for create-account.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.

File tsx ComponentRegistry UIPrimitives 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  87c1c5da_9621_c42c_2915_6af2689e019a["create-account.tsx"]
  aae3c3f1_230a_9c11_a663_8bbc3f0ad054["icons"]
  87c1c5da_9621_c42c_2915_6af2689e019a --> aae3c3f1_230a_9c11_a663_8bbc3f0ad054
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  87c1c5da_9621_c42c_2915_6af2689e019a --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  87c1c5da_9621_c42c_2915_6af2689e019a --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  87c1c5da_9621_c42c_2915_6af2689e019a --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  87c1c5da_9621_c42c_2915_6af2689e019a --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  72f1b829_240b_a010_b4ad_dfef30ded6bf["page.tsx"]
  72f1b829_240b_a010_b4ad_dfef30ded6bf --> 87c1c5da_9621_c42c_2915_6af2689e019a
  style 87c1c5da_9621_c42c_2915_6af2689e019a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Icons } from "@/components/icons"
import { Button } from "@/registry/new-york/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/ui/card"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"

export function DemoCreateAccount() {
  return (
    <Card>
      <CardHeader className="space-y-1">
        <CardTitle className="text-2xl">Create an account</CardTitle>
        <CardDescription>
          Enter your email below to create your account
        </CardDescription>
      </CardHeader>
      <CardContent className="grid gap-4">
        <div className="grid grid-cols-2 gap-6">
          <Button variant="outline">
            <Icons.gitHub className="mr-2 h-4 w-4" />
            Github
          </Button>
          <Button variant="outline">
            <Icons.google className="mr-2 h-4 w-4" />
            Google
          </Button>
        </div>
        <div className="relative">
          <div className="absolute inset-0 flex items-center">
            <span className="w-full border-t" />
          </div>
          <div className="relative flex justify-center text-xs uppercase">
            <span className="bg-background px-2 text-muted-foreground">
              Or continue with
            </span>
          </div>
        </div>
        <div className="grid gap-2">
          <Label htmlFor="email">Email</Label>
          <Input id="email" type="email" placeholder="m@example.com" />
        </div>
        <div className="grid gap-2">
          <Label htmlFor="password">Password</Label>
          <Input id="password" type="password" />
        </div>
      </CardContent>
      <CardFooter>
        <Button className="w-full">Create account</Button>
      </CardFooter>
    </Card>
  )
}

Subdomains

Dependencies

  • button
  • card
  • icons
  • input
  • label

Frequently Asked Questions

What does create-account.tsx do?
create-account.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in create-account.tsx?
create-account.tsx defines 1 function(s): DemoCreateAccount.
What does create-account.tsx depend on?
create-account.tsx imports 5 module(s): button, card, icons, input, label.
What files import create-account.tsx?
create-account.tsx is imported by 1 file(s): page.tsx.
Where is create-account.tsx in the architecture?
create-account.tsx is located at deprecated/www/app/(app)/examples/cards/components/create-account.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/app/(app)/examples/cards/components).

Analyze Your Own Codebase

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

Try Supermodel Free