NavSecondary() — ui Function Reference
Architecture documentation for the NavSecondary() function in nav-secondary.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d90c57c2_8df2_581e_6200_c3820d92b7ff["NavSecondary()"] bab4319b_fe35_9764_c308_a2adaea80c3f["nav-secondary.tsx"] d90c57c2_8df2_581e_6200_c3820d92b7ff -->|defined in| bab4319b_fe35_9764_c308_a2adaea80c3f style d90c57c2_8df2_581e_6200_c3820d92b7ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(examples)/dashboard/components/nav-secondary.tsx lines 17–71
export function NavSecondary({
items,
...props
}: {
items: {
title: string
url: string
icon: Icon
}[]
} & React.ComponentPropsWithoutRef<typeof SidebarGroup>) {
const { resolvedTheme, setTheme } = useTheme()
const [mounted, setMounted] = React.useState(false)
React.useEffect(() => {
setMounted(true)
}, [])
return (
<SidebarGroup {...props}>
<SidebarGroupContent>
<SidebarMenu>
{items.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton asChild>
<a href={item.url}>
<item.icon />
<span>{item.title}</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
))}
<SidebarMenuItem className="group-data-[collapsible=icon]:hidden">
<SidebarMenuButton asChild>
<label>
<IconBrightness />
<span>Dark Mode</span>
{mounted ? (
<Switch
className="ml-auto"
checked={resolvedTheme !== "light"}
onCheckedChange={() =>
setTheme(resolvedTheme === "dark" ? "light" : "dark")
}
/>
) : (
<Skeleton className="ml-auto h-4 w-8 rounded-full" />
)}
</label>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does NavSecondary() do?
NavSecondary() is a function in the ui codebase, defined in apps/v4/app/(examples)/dashboard/components/nav-secondary.tsx.
Where is NavSecondary() defined?
NavSecondary() is defined in apps/v4/app/(examples)/dashboard/components/nav-secondary.tsx at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free