NavActions() — ui Function Reference
Architecture documentation for the NavActions() function in nav-actions.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d87dddfa_8f8c_3a78_cc04_9e5b54e05e61["NavActions()"] 82f098f6_e91d_c05e_b656_b50aec6a805d["nav-actions.tsx"] d87dddfa_8f8c_3a78_cc04_9e5b54e05e61 -->|defined in| 82f098f6_e91d_c05e_b656_b50aec6a805d style d87dddfa_8f8c_3a78_cc04_9e5b54e05e61 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/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>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does NavActions() do?
NavActions() is a function in the ui codebase, defined in deprecated/www/registry/new-york/blocks/sidebar-10/components/nav-actions.tsx.
Where is NavActions() defined?
NavActions() is defined in deprecated/www/registry/new-york/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