ListItem() — ui Function Reference
Architecture documentation for the ListItem() function in navigation-menu-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD b3cd961a_864b_40a1_8e7c_80472f9a4185["ListItem()"] 55674318_0cae_b848_c61c_a90f33a3dec6["navigation-menu-demo.tsx"] b3cd961a_864b_40a1_8e7c_80472f9a4185 -->|defined in| 55674318_0cae_b848_c61c_a90f33a3dec6 style b3cd961a_864b_40a1_8e7c_80472f9a4185 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/internal/sink/components/navigation-menu-demo.tsx lines 122–142
>(({ className, title, children, ...props }, ref) => {
return (
<li>
<NavigationMenuLink asChild>
<a
ref={ref}
className={cn(
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
className
)}
{...props}
>
<div className="text-sm font-medium leading-none">{title}</div>
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground">
{children}
</p>
</a>
</NavigationMenuLink>
</li>
)
})
Domain
Subdomains
Source
Frequently Asked Questions
What does ListItem() do?
ListItem() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/navigation-menu-demo.tsx.
Where is ListItem() defined?
ListItem() is defined in deprecated/www/registry/new-york/internal/sink/components/navigation-menu-demo.tsx at line 122.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free