Home / Function/ AvatarDropdown() — ui Function Reference

AvatarDropdown() — ui Function Reference

Architecture documentation for the AvatarDropdown() function in avatar-dropdown.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  cd92d7c5_b7cd_d992_9932_64350a95566b["AvatarDropdown()"]
  c4abc003_a55b_7e07_0320_429c40e915c5["avatar-dropdown.tsx"]
  cd92d7c5_b7cd_d992_9932_64350a95566b -->|defined in| c4abc003_a55b_7e07_0320_429c40e915c5
  style cd92d7c5_b7cd_d992_9932_64350a95566b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/avatar-dropdown.tsx lines 14–38

export function AvatarDropdown() {
  return (
    <DropdownMenu>
      <DropdownMenuTrigger
        render={<Button variant="ghost" size="icon" className="rounded-full" />}
      >
        <Avatar>
          <AvatarImage src="https://github.com/shadcn.png" alt="shadcn" />
          <AvatarFallback>CN</AvatarFallback>
        </Avatar>
      </DropdownMenuTrigger>
      <DropdownMenuContent className="w-32">
        <DropdownMenuGroup>
          <DropdownMenuItem>Profile</DropdownMenuItem>
          <DropdownMenuItem>Billing</DropdownMenuItem>
          <DropdownMenuItem>Settings</DropdownMenuItem>
        </DropdownMenuGroup>
        <DropdownMenuSeparator />
        <DropdownMenuGroup>
          <DropdownMenuItem variant="destructive">Log out</DropdownMenuItem>
        </DropdownMenuGroup>
      </DropdownMenuContent>
    </DropdownMenu>
  )
}

Subdomains

Frequently Asked Questions

What does AvatarDropdown() do?
AvatarDropdown() is a function in the ui codebase, defined in apps/v4/examples/base/avatar-dropdown.tsx.
Where is AvatarDropdown() defined?
AvatarDropdown() is defined in apps/v4/examples/base/avatar-dropdown.tsx at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free