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

avatar-demo.tsx — ui Source File

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

File tsx DocumentationAtlas ContentSourcing 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  e52faf7a_9f9c_cd13_fcb2_506dacb95ce2["avatar-demo.tsx"]
  00c9789a_2f63_b98d_c90d_4d6abf3582ce["avatar"]
  e52faf7a_9f9c_cd13_fcb2_506dacb95ce2 --> 00c9789a_2f63_b98d_c90d_4d6abf3582ce
  style e52faf7a_9f9c_cd13_fcb2_506dacb95ce2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Avatar,
  AvatarBadge,
  AvatarFallback,
  AvatarGroup,
  AvatarGroupCount,
  AvatarImage,
} from "@/examples/base/ui/avatar"

export default function AvatarDemo() {
  return (
    <div className="flex flex-row flex-wrap items-center gap-6 md:gap-12">
      <Avatar>
        <AvatarImage
          src="https://github.com/shadcn.png"
          alt="@shadcn"
          className="grayscale"
        />
        <AvatarFallback>CN</AvatarFallback>
      </Avatar>
      <Avatar>
        <AvatarImage
          src="https://github.com/evilrabbit.png"
          alt="@evilrabbit"
        />
        <AvatarFallback>ER</AvatarFallback>
        <AvatarBadge className="bg-green-600 dark:bg-green-800" />
      </Avatar>
      <AvatarGroup className="grayscale">
        <Avatar>
          <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarImage
            src="https://github.com/maxleiter.png"
            alt="@maxleiter"
          />
          <AvatarFallback>LR</AvatarFallback>
        </Avatar>
        <Avatar>
          <AvatarImage
            src="https://github.com/evilrabbit.png"
            alt="@evilrabbit"
          />
          <AvatarFallback>ER</AvatarFallback>
        </Avatar>
        <AvatarGroupCount>+3</AvatarGroupCount>
      </AvatarGroup>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • avatar

Frequently Asked Questions

What does avatar-demo.tsx do?
avatar-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in avatar-demo.tsx?
avatar-demo.tsx defines 1 function(s): AvatarDemo.
What does avatar-demo.tsx depend on?
avatar-demo.tsx imports 1 module(s): avatar.
Where is avatar-demo.tsx in the architecture?
avatar-demo.tsx is located at apps/v4/examples/base/avatar-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free