RenderLink() — supabase Function Reference
Architecture documentation for the RenderLink() function in NavigationMenuRefListItems.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD a2b40c8f_d09c_299c_531c_1899fc1f3920["RenderLink()"] c5268a47_8932_032f_0165_61b12103c889["useMenuActiveRefId()"] a2b40c8f_d09c_299c_531c_1899fc1f3920 -->|calls| c5268a47_8932_032f_0165_61b12103c889 style a2b40c8f_d09c_299c_531c_1899fc1f3920 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx lines 99–150
const RenderLink = memo(function RenderLink({ section, basePath }: RenderLinkProps) {
const activeAccordionItem = useMenuActiveRefId()
if (!('items' in section)) {
return (
<FunctionLink
title={section.title}
id={section.id}
slug={section.slug}
basePath={basePath}
isParent={false}
isSubItem
onClick={() => menuState.setMenuMobileOpen(false)}
/>
)
}
let active =
section.id === activeAccordionItem ||
section.items.some((item) => item.id === activeAccordionItem)
return (
<Accordion.Root collapsible type="single" value={active ? section.id : ''}>
<Accordion.Item value={section.id}>
<FunctionLink
title={section.title}
id={section.id}
slug={section.slug}
basePath={basePath}
isParent
isSubItem
/>
<Accordion.Content className="transition data-open:animate-slide-down data-closed:animate-slide-up border-l border-control pl-3 ml-1 data-open:mt-2 grid gap-2.5">
{section.items.map((item) => {
return (
<FunctionLink
key={item.id}
title={item.title}
id={item.id}
slug={item.slug}
basePath={basePath}
isParent={false}
isSubItem={false}
onClick={() => menuState.setMenuMobileOpen(false)}
/>
)
})}
</Accordion.Content>
</Accordion.Item>
</Accordion.Root>
)
})
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does RenderLink() do?
RenderLink() is a function in the supabase codebase.
What does RenderLink() call?
RenderLink() calls 1 function(s): useMenuActiveRefId.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free