Home / Function/ EmptyAvatar() — ui Function Reference

EmptyAvatar() — ui Function Reference

Architecture documentation for the EmptyAvatar() function in empty-avatar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  14f3d159_7b9d_e3ba_d819_940bce29ae66["EmptyAvatar()"]
  26fb80d6_c3f9_0c35_7c09_6a020576921d["empty-avatar.tsx"]
  14f3d159_7b9d_e3ba_d819_940bce29ae66 -->|defined in| 26fb80d6_c3f9_0c35_7c09_6a020576921d
  style 14f3d159_7b9d_e3ba_d819_940bce29ae66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/empty-avatar.tsx lines 16–40

export default function EmptyAvatar() {
  return (
    <Empty>
      <EmptyHeader>
        <EmptyMedia variant="default">
          <Avatar className="size-12">
            <AvatarImage
              src="https://github.com/shadcn.png"
              className="grayscale"
            />
            <AvatarFallback>LR</AvatarFallback>
          </Avatar>
        </EmptyMedia>
        <EmptyTitle>User Offline</EmptyTitle>
        <EmptyDescription>
          This user is currently offline. You can leave a message to notify them
          or try again later.
        </EmptyDescription>
      </EmptyHeader>
      <EmptyContent>
        <Button size="sm">Leave Message</Button>
      </EmptyContent>
    </Empty>
  )
}

Subdomains

Frequently Asked Questions

What does EmptyAvatar() do?
EmptyAvatar() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/empty-avatar.tsx.
Where is EmptyAvatar() defined?
EmptyAvatar() is defined in apps/v4/registry/new-york-v4/examples/empty-avatar.tsx at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free