Home / Function/ NavActions() — ui Function Reference

NavActions() — ui Function Reference

Architecture documentation for the NavActions() function in nav-actions.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  4d1be071_fc67_9b34_c6ef_36d372387553["NavActions()"]
  e35063b7_6870_74b1_c46d_79c0a5e7bd57["nav-actions.tsx"]
  4d1be071_fc67_9b34_c6ef_36d372387553 -->|defined in| e35063b7_6870_74b1_c46d_79c0a5e7bd57
  style 4d1be071_fc67_9b34_c6ef_36d372387553 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/blocks/sidebar-10/components/nav-actions.tsx lines 101–153

export function NavActions() {
  const [isOpen, setIsOpen] = React.useState(false)

  React.useEffect(() => {
    setIsOpen(true)
  }, [])

  return (
    <div className="flex items-center gap-2 text-sm">
      <div className="hidden font-medium text-muted-foreground md:inline-block">
        Edit Oct 08
      </div>
      <Button variant="ghost" size="icon" className="h-7 w-7">
        <Star />
      </Button>
      <Popover open={isOpen} onOpenChange={setIsOpen}>
        <PopoverTrigger asChild>
          <Button
            variant="ghost"
            size="icon"
            className="h-7 w-7 data-[state=open]:bg-accent"
          >
            <MoreHorizontal />
          </Button>
        </PopoverTrigger>
        <PopoverContent
          className="w-56 overflow-hidden rounded-lg p-0"
          align="end"
        >
          <Sidebar collapsible="none" className="bg-transparent">
            <SidebarContent>
              {data.map((group, index) => (
                <SidebarGroup key={index} className="border-b last:border-none">
                  <SidebarGroupContent className="gap-0">
                    <SidebarMenu>
                      {group.map((item, index) => (
                        <SidebarMenuItem key={index}>
                          <SidebarMenuButton>
                            <item.icon /> <span>{item.label}</span>
                          </SidebarMenuButton>
                        </SidebarMenuItem>
                      ))}
                    </SidebarMenu>
                  </SidebarGroupContent>
                </SidebarGroup>
              ))}
            </SidebarContent>
          </Sidebar>
        </PopoverContent>
      </Popover>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does NavActions() do?
NavActions() is a function in the ui codebase, defined in deprecated/www/registry/default/blocks/sidebar-10/components/nav-actions.tsx.
Where is NavActions() defined?
NavActions() is defined in deprecated/www/registry/default/blocks/sidebar-10/components/nav-actions.tsx at line 101.

Analyze Your Own Codebase

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

Try Supermodel Free