NavActions() — ui Function Reference
Architecture documentation for the NavActions() function in nav-actions.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6e329b52_cb79_c5e2_8aa9_ac861a63f030["NavActions()"] 31d0ce5f_1674_d18d_f76a_f3674db5834e["nav-actions.tsx"] 6e329b52_cb79_c5e2_8aa9_ac861a63f030 -->|defined in| 31d0ce5f_1674_d18d_f76a_f3674db5834e style 6e329b52_cb79_c5e2_8aa9_ac861a63f030 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/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="text-muted-foreground hidden font-medium 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="data-[state=open]:bg-accent h-7 w-7"
>
<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>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does NavActions() do?
NavActions() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/sidebar-10/components/nav-actions.tsx.
Where is NavActions() defined?
NavActions() is defined in apps/v4/registry/new-york-v4/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