Home / Function/ DropdownMenuAvatarOnly() — ui Function Reference

DropdownMenuAvatarOnly() — ui Function Reference

Architecture documentation for the DropdownMenuAvatarOnly() function in dropdown-menu-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  282e47eb_3569_7b56_a833_2c9e2d85e0f3["DropdownMenuAvatarOnly()"]
  9d186968_6524_fa81_1270_1b5830881a31["dropdown-menu-demo.tsx"]
  282e47eb_3569_7b56_a833_2c9e2d85e0f3 -->|defined in| 9d186968_6524_fa81_1270_1b5830881a31
  style 282e47eb_3569_7b56_a833_2c9e2d85e0f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/dropdown-menu-demo.tsx lines 319–417

function DropdownMenuAvatarOnly() {
  return (
    <DropdownMenu>
      <DropdownMenuTrigger asChild>
        <Button
          variant="outline"
          className="size-8 rounded-full border-none p-0"
        >
          <Avatar>
            <AvatarImage
              src="https://github.com/maxleiter.png"
              alt="maxleiter"
            />
            <AvatarFallback className="rounded-lg">LR</AvatarFallback>
          </Avatar>
        </Button>
      </DropdownMenuTrigger>
      <DropdownMenuContent
        className="w-(--radix-dropdown-menu-trigger-width) min-w-56"
        align="start"
      >
        <DropdownMenuLabel className="p-0 font-normal">
          <div className="flex items-center gap-2 px-1 py-1.5 text-left text-sm">
            <Avatar>
              <AvatarImage
                src="https://github.com/maxleiter.png"
                alt="maxleiter"
              />
              <AvatarFallback className="rounded-lg">LR</AvatarFallback>
            </Avatar>
            <div className="grid flex-1 text-left text-sm leading-tight">
              <span className="truncate font-semibold">maxleiter</span>
              <span className="text-muted-foreground truncate text-xs">
                maxleiter@example.com
              </span>
            </div>
          </div>
        </DropdownMenuLabel>
        <DropdownMenuSeparator />
        <DropdownMenuGroup>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="SparklesIcon"
              tabler="IconSparkles"
              hugeicons="SparklesIcon"
              phosphor="SparklesIcon"
              remixicon="RiSparklingLine"
            />
            Upgrade to Pro
          </DropdownMenuItem>
        </DropdownMenuGroup>
        <DropdownMenuSeparator />
        <DropdownMenuGroup>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="BadgeCheckIcon"
              tabler="IconBadgeCheck"
              hugeicons="BadgeCheckIcon"
              phosphor="CheckCircleIcon"
              remixicon="RiVerifiedBadgeLine"
            />
            Account
          </DropdownMenuItem>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="CreditCardIcon"
              tabler="IconCreditCard"
              hugeicons="CreditCardIcon"
              phosphor="CreditCardIcon"
              remixicon="RiBankCardLine"
            />
            Billing
          </DropdownMenuItem>
          <DropdownMenuItem>
            <IconPlaceholder
              lucide="BellIcon"
              tabler="IconBell"
              hugeicons="BellIcon"
              phosphor="BellIcon"
              remixicon="RiNotification3Line"
            />

Subdomains

Frequently Asked Questions

What does DropdownMenuAvatarOnly() do?
DropdownMenuAvatarOnly() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/dropdown-menu-demo.tsx.
Where is DropdownMenuAvatarOnly() defined?
DropdownMenuAvatarOnly() is defined in apps/v4/app/(internal)/sink/components/dropdown-menu-demo.tsx at line 319.

Analyze Your Own Codebase

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

Try Supermodel Free