Home / File/ card-example.tsx — ui Source File

card-example.tsx — ui Source File

Architecture documentation for card-example.tsx, a tsx file in the ui codebase. 8 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 8 imports 11 functions

Entity Profile

Dependency Diagram

graph LR
  ee714589_8224_8ab3_9e79_b7337e5a44b1["card-example.tsx"]
  3eb36dd7_f51a_1431_02e2_7abafe315718["image"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> 3eb36dd7_f51a_1431_02e2_7abafe315718
  da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a
  c189c3c0_a1b8_4ad9_527c_a5af15f8c93a["avatar"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> c189c3c0_a1b8_4ad9_527c_a5af15f8c93a
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> 381135fe_5f7a_910a_b8a2_691e9756a016
  11818bc0_4ad2_fa77_9175_f5c44c22af5e["card"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> 11818bc0_4ad2_fa77_9175_f5c44c22af5e
  e2659e08_4bcd_4a08_ab57_ce3a18c3b284["field"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> e2659e08_4bcd_4a08_ab57_ce3a18c3b284
  dc919c5d_820f_f2af_7ccd_a07763a51161["input"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> dc919c5d_820f_f2af_7ccd_a07763a51161
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  ee714589_8224_8ab3_9e79_b7337e5a44b1 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style ee714589_8224_8ab3_9e79_b7337e5a44b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Image from "next/image"

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
  Avatar,
  AvatarFallback,
  AvatarGroup,
  AvatarGroupCount,
  AvatarImage,
} from "@/registry/bases/radix/ui/avatar"
import { Button } from "@/registry/bases/radix/ui/button"
import {
  Card,
  CardAction,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/registry/bases/radix/ui/card"
import { Field, FieldGroup, FieldLabel } from "@/registry/bases/radix/ui/field"
import { Input } from "@/registry/bases/radix/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)

Subdomains

Dependencies

  • avatar
  • button
  • card
  • example
  • field
  • icon-placeholder
  • image
  • input

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, ChartRegistry 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/radix/examples/card-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).

Analyze Your Own Codebase

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

Try Supermodel Free