Home / Function/ NavDocuments() — ui Function Reference

NavDocuments() — ui Function Reference

Architecture documentation for the NavDocuments() function in nav-documents.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  eabffa08_e2cc_7b30_cad6_289b08a0955f["NavDocuments()"]
  58858fc4_41e8_cbfb_5be5_73d48254d617["nav-documents.tsx"]
  eabffa08_e2cc_7b30_cad6_289b08a0955f -->|defined in| 58858fc4_41e8_cbfb_5be5_73d48254d617
  style eabffa08_e2cc_7b30_cad6_289b08a0955f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/dashboard-01/components/nav-documents.tsx lines 21–116

export function NavDocuments({
  items,
}: {
  items: {
    name: string
    url: string
    icon: React.ReactNode
  }[]
}) {
  const { isMobile } = useSidebar()

  return (
    <SidebarGroup className="group-data-[collapsible=icon]:hidden">
      <SidebarGroupLabel>Documents</SidebarGroupLabel>
      <SidebarMenu>
        {items.map((item) => (
          <SidebarMenuItem key={item.name}>
            <SidebarMenuButton asChild>
              <a href={item.url}>
                {item.icon}
                <span>{item.name}</span>
              </a>
            </SidebarMenuButton>
            <DropdownMenu>
              <DropdownMenuTrigger asChild>
                <SidebarMenuAction
                  showOnHover
                  className="data-[state=open]:bg-accent rounded-sm"
                >
                  <IconPlaceholder
                    lucide="MoreHorizontalIcon"
                    tabler="IconDots"
                    hugeicons="MoreHorizontalCircle01Icon"
                    phosphor="DotsThreeOutlineIcon"
                    remixicon="RiMoreLine"
                  />
                  <span className="sr-only">More</span>
                </SidebarMenuAction>
              </DropdownMenuTrigger>
              <DropdownMenuContent
                className="w-24 rounded-lg"
                side={isMobile ? "bottom" : "right"}
                align={isMobile ? "end" : "start"}
              >
                <DropdownMenuItem>
                  <IconPlaceholder
                    lucide="FolderIcon"
                    tabler="IconFolder"
                    hugeicons="Folder01Icon"
                    phosphor="FolderIcon"
                    remixicon="RiFolderLine"
                  />
                  <span>Open</span>
                </DropdownMenuItem>
                <DropdownMenuItem>
                  <IconPlaceholder
                    lucide="ShareIcon"
                    tabler="IconShare3"
                    hugeicons="Share01Icon"
                    phosphor="ShareIcon"
                    remixicon="RiShareLine"
                  />
                  <span>Share</span>
                </DropdownMenuItem>
                <DropdownMenuSeparator />
                <DropdownMenuItem variant="destructive">
                  <IconPlaceholder
                    lucide="Trash2Icon"
                    tabler="IconTrash"
                    hugeicons="Delete02Icon"
                    phosphor="TrashIcon"
                    remixicon="RiDeleteBinLine"
                  />
                  <span>Delete</span>
                </DropdownMenuItem>
              </DropdownMenuContent>
            </DropdownMenu>
          </SidebarMenuItem>
        ))}
        <SidebarMenuItem>
          <SidebarMenuButton className="text-sidebar-foreground/70">

Subdomains

Frequently Asked Questions

What does NavDocuments() do?
NavDocuments() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/dashboard-01/components/nav-documents.tsx.
Where is NavDocuments() defined?
NavDocuments() is defined in apps/v4/registry/bases/radix/blocks/dashboard-01/components/nav-documents.tsx at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free