card-demo.tsx — ui Source File
Architecture documentation for card-demo.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b7e7612a_1a32_3440_61b7_973973a80ab5["card-demo.tsx"] 57e86e45_ac6e_7278_be08_9092724e8401["button"] b7e7612a_1a32_3440_61b7_973973a80ab5 --> 57e86e45_ac6e_7278_be08_9092724e8401 c6d6139d_ea69_3d79_5004_68419bae2ac0["card"] b7e7612a_1a32_3440_61b7_973973a80ab5 --> c6d6139d_ea69_3d79_5004_68419bae2ac0 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] b7e7612a_1a32_3440_61b7_973973a80ab5 --> 80cf663d_a411_487c_d69e_ac9d405cd2ec d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] b7e7612a_1a32_3440_61b7_973973a80ab5 --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d style b7e7612a_1a32_3440_61b7_973973a80ab5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york-v4/ui/card"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
export default function CardDemo() {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>Login to your account</CardTitle>
<CardDescription>
Enter your email below to login to your account
</CardDescription>
<CardAction>
<Button variant="link">Sign Up</Button>
</CardAction>
</CardHeader>
<CardContent>
<form>
<div className="flex flex-col gap-6">
<div className="grid gap-2">
<Label htmlFor="email">Email</Label>
<Input
id="email"
type="email"
placeholder="m@example.com"
required
/>
</div>
<div className="grid gap-2">
<div className="flex items-center">
<Label htmlFor="password">Password</Label>
<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 />
</div>
</div>
</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>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- card
- input
- label
Source
Frequently Asked Questions
What does card-demo.tsx do?
card-demo.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 card-demo.tsx?
card-demo.tsx defines 1 function(s): CardDemo.
What does card-demo.tsx depend on?
card-demo.tsx imports 4 module(s): button, card, input, label.
Where is card-demo.tsx in the architecture?
card-demo.tsx is located at apps/v4/registry/new-york-v4/examples/card-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free