MCPcopy Create free account
hub / github.com/adobe/react-spectrum / leafNode

Function leafNode

packages/dev/s2-docs/src/Nav.tsx:166–168  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

164}
165
166function leafNode(page: Page): NavNode {
167 return {id: page.url, title: title(page), href: page.url};
168}
169
170function renderNode(node: NavNode) {
171 return (

Callers

nothing calls this directly

Calls 1

titleFunction · 0.85

Tested by

no test coverage detected