Home / Function/ AvatarInEmpty() — ui Function Reference

AvatarInEmpty() — ui Function Reference

Architecture documentation for the AvatarInEmpty() function in avatar-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  5c7e0d2d_6a9c_008f_abd9_78b6c1710ef8["AvatarInEmpty()"]
  da628c9f_c737_5cef_6f42_0c35975bff72["avatar-example.tsx"]
  5c7e0d2d_6a9c_008f_abd9_78b6c1710ef8 -->|defined in| da628c9f_c737_5cef_6f42_0c35975bff72
  style 5c7e0d2d_6a9c_008f_abd9_78b6c1710ef8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/avatar-example.tsx lines 449–511

function AvatarInEmpty() {
  return (
    <Example title="In Empty">
      <Empty className="w-full flex-none border">
        <EmptyHeader>
          <EmptyMedia>
            <AvatarGroup>
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/shadcn.png"
                  alt="@shadcn"
                  className="grayscale"
                />
                <AvatarFallback>CN</AvatarFallback>
              </Avatar>
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/maxleiter.png"
                  alt="@maxleiter"
                  className="grayscale"
                />
                <AvatarFallback>LR</AvatarFallback>
              </Avatar>
              <Avatar size="lg">
                <AvatarImage
                  src="https://github.com/evilrabbit.png"
                  alt="@evilrabbit"
                  className="grayscale"
                />
                <AvatarFallback>ER</AvatarFallback>
              </Avatar>
              <AvatarGroupCount>
                <IconPlaceholder
                  lucide="PlusIcon"
                  tabler="IconPlus"
                  hugeicons="PlusSignIcon"
                  phosphor="PlusIcon"
                  remixicon="RiAddLine"
                />
              </AvatarGroupCount>
            </AvatarGroup>
          </EmptyMedia>
          <EmptyTitle>No Team Members</EmptyTitle>
          <EmptyDescription>
            Invite your team to collaborate on this project.
          </EmptyDescription>
        </EmptyHeader>
        <EmptyContent>
          <Button>
            <IconPlaceholder
              lucide="PlusIcon"
              tabler="IconPlus"
              hugeicons="PlusSignIcon"
              phosphor="PlusIcon"
              remixicon="RiAddLine"
            />
            Invite Members
          </Button>
        </EmptyContent>
      </Empty>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does AvatarInEmpty() do?
AvatarInEmpty() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/avatar-example.tsx.
Where is AvatarInEmpty() defined?
AvatarInEmpty() is defined in apps/v4/registry/bases/base/examples/avatar-example.tsx at line 449.

Analyze Your Own Codebase

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

Try Supermodel Free