MainNav() — ui Function Reference
Architecture documentation for the MainNav() function in main-nav.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 0cb0e29c_c07a_7af9_b208_a85f0ac7ed13["MainNav()"] 2d36a508_952d_a71d_7e85_b9ded4d7fc06["main-nav.tsx"] 0cb0e29c_c07a_7af9_b208_a85f0ac7ed13 -->|defined in| 2d36a508_952d_a71d_7e85_b9ded4d7fc06 style 0cb0e29c_c07a_7af9_b208_a85f0ac7ed13 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/components/main-nav.tsx lines 10–93
export function MainNav() {
const pathname = usePathname()
return (
<div className="mr-4 hidden md:flex">
<Link href="/" className="mr-4 flex items-center gap-2 lg:mr-6">
<Icons.logo className="h-6 w-6" />
<span className="hidden font-bold lg:inline-block">
{siteConfig.name}
</span>
</Link>
<nav className="flex items-center gap-4 text-sm xl:gap-6">
<Link
href="/docs/installation"
className={cn(
"transition-colors hover:text-foreground/80",
pathname === "/docs/installation"
? "text-foreground"
: "text-foreground/80"
)}
>
Docs
</Link>
<Link
href="/docs/components"
className={cn(
"transition-colors hover:text-foreground/80",
pathname?.startsWith("/docs/components") &&
!pathname?.startsWith("/docs/component/chart")
? "text-foreground"
: "text-foreground/80"
)}
>
Components
</Link>
<Link
href="/blocks"
className={cn(
"transition-colors hover:text-foreground/80",
pathname?.startsWith("/blocks")
? "text-foreground"
: "text-foreground/80"
)}
>
Blocks
</Link>
<Link
href="/charts"
className={cn(
"transition-colors hover:text-foreground/80",
pathname?.startsWith("/docs/component/chart") ||
pathname?.startsWith("/charts")
? "text-foreground"
: "text-foreground/80"
)}
>
Charts
</Link>
<Link
href="/themes"
className={cn(
"transition-colors hover:text-foreground/80",
pathname?.startsWith("/themes")
? "text-foreground"
: "text-foreground/80"
)}
>
Themes
</Link>
<Link
href="/colors"
className={cn(
"transition-colors hover:text-foreground/80",
pathname?.startsWith("/colors")
? "text-foreground"
: "text-foreground/80"
)}
>
Colors
</Link>
</nav>
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does MainNav() do?
MainNav() is a function in the ui codebase, defined in deprecated/www/components/main-nav.tsx.
Where is MainNav() defined?
MainNav() is defined in deprecated/www/components/main-nav.tsx at line 10.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free