Home / Function/ ListItem() — ui Function Reference

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
  b9b3a63e_37d7_081a_1edc_07195fee7dcc["ListItem()"]
  781a0036_89ba_9d72_6661_3bcce25a06f8["navigation-menu-demo.tsx"]
  b9b3a63e_37d7_081a_1edc_07195fee7dcc -->|defined in| 781a0036_89ba_9d72_6661_3bcce25a06f8
  style b9b3a63e_37d7_081a_1edc_07195fee7dcc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/navigation-menu-demo.tsx lines 99–117

function ListItem({
  title,
  children,
  href,
  ...props
}: React.ComponentPropsWithoutRef<"li"> & { href: string }) {
  return (
    <li {...props}>
      <NavigationMenuLink asChild>
        <Link href={href}>
          <div className="flex flex-col gap-1 text-sm">
            <div className="leading-none font-medium">{title}</div>
            <div className="text-muted-foreground line-clamp-2">{children}</div>
          </div>
        </Link>
      </NavigationMenuLink>
    </li>
  )
}

Subdomains

Frequently Asked Questions

What does ListItem() do?
ListItem() is a function in the ui codebase, defined in apps/v4/examples/radix/navigation-menu-demo.tsx.
Where is ListItem() defined?
ListItem() is defined in apps/v4/examples/radix/navigation-menu-demo.tsx at line 99.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free