MenuItem() — supabase Function Reference
Architecture documentation for the MenuItem() function in GlobalNavigationMenu.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/components/Navigation/NavigationMenu/GlobalNavigationMenu.tsx lines 166–187
>(({ className, title, href = '', icon, community, children, ...props }, ref) => {
return (
<Link
href={href}
ref={ref}
className={cn(
'group/menu-item flex items-center gap-2',
'w-full flex h-8 items-center text-foreground-light text-sm hover:text-foreground select-none rounded-md p-2 leading-none no-underline !outline-none focus-visible:ring-2 focus-visible:ring-foreground-lighter focus-visible:text-foreground',
className
)}
{...props}
>
{children ?? (
<>
{icon && <MenuIconPicker icon={icon} className="text-foreground-lighter" />}
<span className="flex-1">{title}</span>
{community && <Badge>Community</Badge>}
</>
)}
</Link>
)
})
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free