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 1460ac39_5d3d_51d6_51aa_99f7c717ba38["ListItem()"] e5dc2aa4_2198_3133_24cc_773e2d225649["navigation-menu-demo.tsx"] 1460ac39_5d3d_51d6_51aa_99f7c717ba38 -->|defined in| e5dc2aa4_2198_3133_24cc_773e2d225649 style 1460ac39_5d3d_51d6_51aa_99f7c717ba38 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/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/default/internal/sink/components/navigation-menu-demo.tsx.
Where is ListItem() defined?
ListItem() is defined in deprecated/www/registry/default/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