card-example.tsx — ui Source File
Architecture documentation for card-example.tsx, a tsx file in the ui codebase. 8 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 87a19b49_f9c9_d0f6_82c8_bd14af27311a["card-example.tsx"] 3eb36dd7_f51a_1431_02e2_7abafe315718["image"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> 3eb36dd7_f51a_1431_02e2_7abafe315718 f56be340_a522_c6f7_dec3_5906873d14c8["example"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> f56be340_a522_c6f7_dec3_5906873d14c8 33aff0f4_3c33_c7f6_34d2_7728d844b2e2["avatar"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> 33aff0f4_3c33_c7f6_34d2_7728d844b2e2 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 deffd1e6_798d_b7fd_c687_7ccabc947893["card"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> deffd1e6_798d_b7fd_c687_7ccabc947893 8a527dea_9425_3da4_8ceb_ec3058568dc9["field"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> 8a527dea_9425_3da4_8ceb_ec3058568dc9 106d51d9_3961_e810_478c_8a9c54987d20["input"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> 106d51d9_3961_e810_478c_8a9c54987d20 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 87a19b49_f9c9_d0f6_82c8_bd14af27311a --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 87a19b49_f9c9_d0f6_82c8_bd14af27311a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import Image from "next/image"
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import {
Avatar,
AvatarFallback,
AvatarGroup,
AvatarGroupCount,
AvatarImage,
} from "@/registry/bases/base/ui/avatar"
import { Button } from "@/registry/bases/base/ui/button"
import {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/bases/base/ui/card"
import { Field, FieldGroup, FieldLabel } from "@/registry/bases/base/ui/field"
import { Input } from "@/registry/bases/base/ui/input"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function CardExample() {
return (
<ExampleWrapper>
<CardDefault />
<CardSmall />
<CardHeaderWithBorder />
<CardFooterWithBorder />
<CardHeaderWithBorderSmall />
<CardFooterWithBorderSmall />
<CardWithImage />
<CardWithImageSmall />
<CardLogin />
<CardMeetingNotes />
</ExampleWrapper>
)
}
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
// ... (308 more lines)
Domain
Subdomains
Functions
Dependencies
- avatar
- button
- card
- example
- field
- icon-placeholder
- image
- input
Source
Frequently Asked Questions
What does card-example.tsx do?
card-example.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 card-example.tsx?
card-example.tsx defines 11 function(s): CardDefault, CardExample, CardFooterWithBorder, CardFooterWithBorderSmall, CardHeaderWithBorder, CardHeaderWithBorderSmall, CardLogin, CardMeetingNotes, CardSmall, CardWithImage, and 1 more.
What does card-example.tsx depend on?
card-example.tsx imports 8 module(s): avatar, button, card, example, field, icon-placeholder, image, input.
Where is card-example.tsx in the architecture?
card-example.tsx is located at apps/v4/registry/bases/base/examples/card-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free