Home / Function/ ListItem() — supabase Function Reference

ListItem() — supabase Function Reference

Architecture documentation for the ListItem() function in navigation-menu-demo.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/registry/default/example/navigation-menu-demo.tsx lines 121–139

  ({ 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-surface-100/50 hover:text-foreground focus:bg-surface-100/50 focus:text-foreground',
              className
            )}
            {...props}
          >
            <div className="text-sm text-foreground leading-none">{title}</div>
            <p className="line-clamp-2 text-sm leading-snug text-foreground-lighter">{children}</p>
          </a>
        </NavigationMenuLink>
      </li>
    )
  }

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free