nav-user.tsx — ui Source File
Architecture documentation for nav-user.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e["nav-user.tsx"] c189c3c0_a1b8_4ad9_527c_a5af15f8c93a["avatar"] 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e --> c189c3c0_a1b8_4ad9_527c_a5af15f8c93a 8001cb6e_41cc_4789_e2c4_6c9b6b1cc0bb["dropdown-menu"] 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e --> 8001cb6e_41cc_4789_e2c4_6c9b6b1cc0bb 1fee781a_1910_afaa_bb29_21305eb0ae61["sidebar"] 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e --> 1fee781a_1910_afaa_bb29_21305eb0ae61 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 7165e602_a4e5_4e8b_ac9f_ce998d80bb2e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/bases/radix/ui/avatar"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/registry/bases/radix/ui/dropdown-menu"
import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@/registry/bases/radix/ui/sidebar"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export function NavUser({
user,
}: {
user: {
name: string
email: string
avatar: string
}
}) {
const { isMobile } = useSidebar()
return (
<SidebarMenu>
<SidebarMenuItem>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<SidebarMenuButton
size="lg"
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0"
>
<Avatar className="h-8 w-8 rounded-lg">
<AvatarImage src={user.avatar} alt={user.name} />
<AvatarFallback className="rounded-lg">CN</AvatarFallback>
</Avatar>
<div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">{user.name}</span>
<span className="truncate text-xs">{user.email}</span>
</div>
<IconPlaceholder
lucide="ChevronsUpDownIcon"
tabler="IconSelector"
hugeicons="UnfoldMoreIcon"
phosphor="CaretUpDownIcon"
remixicon="RiArrowUpDownLine"
className="ml-auto size-4"
/>
// ... (84 more lines)
Domain
Subdomains
Functions
Dependencies
- avatar
- dropdown-menu
- icon-placeholder
- sidebar
Source
Frequently Asked Questions
What does nav-user.tsx do?
nav-user.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in nav-user.tsx?
nav-user.tsx defines 1 function(s): NavUser.
What does nav-user.tsx depend on?
nav-user.tsx imports 4 module(s): avatar, dropdown-menu, icon-placeholder, sidebar.
Where is nav-user.tsx in the architecture?
nav-user.tsx is located at apps/v4/registry/bases/radix/blocks/sidebar-09/components/nav-user.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/blocks/sidebar-09/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free