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

avatar-dropdown.tsx — ui Source File

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

File tsx DocumentationAtlas SearchAPI 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c4abc003_a55b_7e07_0320_429c40e915c5["avatar-dropdown.tsx"]
  00c9789a_2f63_b98d_c90d_4d6abf3582ce["avatar"]
  c4abc003_a55b_7e07_0320_429c40e915c5 --> 00c9789a_2f63_b98d_c90d_4d6abf3582ce
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  c4abc003_a55b_7e07_0320_429c40e915c5 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  c4ec47ed_7434_868c_4320_f03b26dfd4e8["dropdown-menu"]
  c4abc003_a55b_7e07_0320_429c40e915c5 --> c4ec47ed_7434_868c_4320_f03b26dfd4e8
  style c4abc003_a55b_7e07_0320_429c40e915c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { Avatar, AvatarFallback, AvatarImage } from "@/examples/base/ui/avatar"
import { Button } from "@/examples/base/ui/button"
import {
  DropdownMenu,
  DropdownMenuContent,
  DropdownMenuGroup,
  DropdownMenuItem,
  DropdownMenuSeparator,
  DropdownMenuTrigger,
} from "@/examples/base/ui/dropdown-menu"

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

Functions

Dependencies

  • avatar
  • button
  • dropdown-menu

Frequently Asked Questions

What does avatar-dropdown.tsx do?
avatar-dropdown.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in avatar-dropdown.tsx?
avatar-dropdown.tsx defines 1 function(s): AvatarDropdown.
What does avatar-dropdown.tsx depend on?
avatar-dropdown.tsx imports 3 module(s): avatar, button, dropdown-menu.
Where is avatar-dropdown.tsx in the architecture?
avatar-dropdown.tsx is located at apps/v4/examples/base/avatar-dropdown.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, 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