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

Function title

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

Source from the content-addressed store, hash-verified

156}
157
158function title(page) {
159 return page.exports?.title ?? page.tableOfContents?.[0]?.title ?? page.name;
160}
161
162function isIntroduction(page) {
163 return page.url.endsWith('/');

Callers 5

leafNodeFunction · 0.85
sortSectionPagesFunction · 0.85
sortOverviewFunction · 0.85
CoachMark.tsxFile · 0.85
Card.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected