NavigationMenuDemo() — ui Function Reference
Architecture documentation for the NavigationMenuDemo() function in navigation-menu-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6133ab5e_25cf_cbd9_0388_49c4d06cecac["NavigationMenuDemo()"] e5dc2aa4_2198_3133_24cc_773e2d225649["navigation-menu-demo.tsx"] 6133ab5e_25cf_cbd9_0388_49c4d06cecac -->|defined in| e5dc2aa4_2198_3133_24cc_773e2d225649 style 6133ab5e_25cf_cbd9_0388_49c4d06cecac fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/internal/sink/components/navigation-menu-demo.tsx lines 55–117
export function NavigationMenuDemo() {
return (
<NavigationMenu>
<NavigationMenuList>
<NavigationMenuItem>
<NavigationMenuTrigger>Getting started</NavigationMenuTrigger>
<NavigationMenuContent>
<ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]">
<li className="row-span-3">
<NavigationMenuLink asChild>
<a
className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md"
href="/"
>
<div className="mb-2 mt-4 text-lg font-medium">
shadcn/ui
</div>
<p className="text-sm leading-tight text-muted-foreground">
Beautifully designed components built with Radix UI and
Tailwind CSS.
</p>
</a>
</NavigationMenuLink>
</li>
<ListItem href="/docs" title="Introduction">
Re-usable components built using Radix UI and Tailwind CSS.
</ListItem>
<ListItem href="/docs/installation" title="Installation">
How to install dependencies and structure your app.
</ListItem>
<ListItem href="/docs/primitives/typography" title="Typography">
Styles for headings, paragraphs, lists...etc
</ListItem>
</ul>
</NavigationMenuContent>
</NavigationMenuItem>
<NavigationMenuItem>
<NavigationMenuTrigger>Components</NavigationMenuTrigger>
<NavigationMenuContent>
<ul className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ">
{components.map((component) => (
<ListItem
key={component.title}
title={component.title}
href={component.href}
>
{component.description}
</ListItem>
))}
</ul>
</NavigationMenuContent>
</NavigationMenuItem>
<NavigationMenuItem>
<Link href="/docs" legacyBehavior passHref>
<NavigationMenuLink className={navigationMenuTriggerStyle()}>
Documentation
</NavigationMenuLink>
</Link>
</NavigationMenuItem>
</NavigationMenuList>
</NavigationMenu>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does NavigationMenuDemo() do?
NavigationMenuDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/internal/sink/components/navigation-menu-demo.tsx.
Where is NavigationMenuDemo() defined?
NavigationMenuDemo() is defined in deprecated/www/registry/default/internal/sink/components/navigation-menu-demo.tsx at line 55.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free