NavActions() — ui Function Reference
Architecture documentation for the NavActions() function in nav-actions.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 5d619715_80df_acf3_6563_a1ab4a025e8b["NavActions()"] 3b61ba82_955b_970e_00e6_534c8aab0098["nav-actions.tsx"] 5d619715_80df_acf3_6563_a1ab4a025e8b -->|defined in| 3b61ba82_955b_970e_00e6_534c8aab0098 style 5d619715_80df_acf3_6563_a1ab4a025e8b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/blocks/sidebar-10/components/nav-actions.tsx lines 188–252
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">
<IconPlaceholder
lucide="StarIcon"
tabler="IconStar"
hugeicons="StarIcon"
phosphor="StarIcon"
remixicon="RiStarLine"
/>
</Button>
<Popover open={isOpen} onOpenChange={setIsOpen}>
<PopoverTrigger
render={
<Button
variant="ghost"
size="icon"
className="data-open:bg-accent h-7 w-7"
/>
}
>
<IconPlaceholder
lucide="MoreHorizontalIcon"
tabler="IconDots"
hugeicons="MoreHorizontalCircle01Icon"
phosphor="DotsThreeOutlineIcon"
remixicon="RiMoreLine"
/>
</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/bases/base/blocks/sidebar-10/components/nav-actions.tsx.
Where is NavActions() defined?
NavActions() is defined in apps/v4/registry/bases/base/blocks/sidebar-10/components/nav-actions.tsx at line 188.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free