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

avatar-example.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 5 imports 8 functions

Entity Profile

Dependency Diagram

graph LR
  e48c0099_8183_4696_c376_97e8309d13b2["avatar-example.tsx"]
  da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"]
  e48c0099_8183_4696_c376_97e8309d13b2 --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a
  c189c3c0_a1b8_4ad9_527c_a5af15f8c93a["avatar"]
  e48c0099_8183_4696_c376_97e8309d13b2 --> c189c3c0_a1b8_4ad9_527c_a5af15f8c93a
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  e48c0099_8183_4696_c376_97e8309d13b2 --> 381135fe_5f7a_910a_b8a2_691e9756a016
  60e5614f_5f22_4214_bc6f_532cdf848a85["empty"]
  e48c0099_8183_4696_c376_97e8309d13b2 --> 60e5614f_5f22_4214_bc6f_532cdf848a85
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  e48c0099_8183_4696_c376_97e8309d13b2 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style e48c0099_8183_4696_c376_97e8309d13b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
  Avatar,
  AvatarBadge,
  AvatarFallback,
  AvatarGroup,
  AvatarGroupCount,
  AvatarImage,
} from "@/registry/bases/radix/ui/avatar"
import { Button } from "@/registry/bases/radix/ui/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/registry/bases/radix/ui/empty"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export default function AvatarExample() {
  return (
    <ExampleWrapper>
      <AvatarSizes />
      <AvatarWithBadge />
      <AvatarWithBadgeIcon />
      <AvatarGroupExample />
      <AvatarGroupWithCount />
      <AvatarGroupWithIconCount />
      <AvatarInEmpty />
    </ExampleWrapper>
  )
}

function AvatarSizes() {
  return (
    <Example title="Sizes">
      <div className="flex flex-wrap items-center gap-2">
        <Avatar size="sm">
          <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
        <Avatar size="lg">
          <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
      </div>
      <div className="flex flex-wrap items-center gap-2">
        <Avatar size="sm">
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarFallback>CN</AvatarFallback>
// ... (452 more lines)

Subdomains

Dependencies

  • avatar
  • button
  • empty
  • example
  • icon-placeholder

Frequently Asked Questions

What does avatar-example.tsx do?
avatar-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 avatar-example.tsx?
avatar-example.tsx defines 8 function(s): AvatarExample, AvatarGroupExample, AvatarGroupWithCount, AvatarGroupWithIconCount, AvatarInEmpty, AvatarSizes, AvatarWithBadge, AvatarWithBadgeIcon.
What does avatar-example.tsx depend on?
avatar-example.tsx imports 5 module(s): avatar, button, empty, example, icon-placeholder.
Where is avatar-example.tsx in the architecture?
avatar-example.tsx is located at apps/v4/registry/bases/radix/examples/avatar-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