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 3ffda46c_965e_d8eb_8542_de891cbebb29["ListItem()"] 66189218_d64f_4d29_9983_05559008db93["navigation-menu-demo.tsx"] 3ffda46c_965e_d8eb_8542_de891cbebb29 -->|defined in| 66189218_d64f_4d29_9983_05559008db93 style 3ffda46c_965e_d8eb_8542_de891cbebb29 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/examples/navigation-menu-demo.tsx lines 124–144
>(({ 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/examples/navigation-menu-demo.tsx.
Where is ListItem() defined?
ListItem() is defined in deprecated/www/registry/new-york/examples/navigation-menu-demo.tsx at line 124.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free