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

Function getSearchSection

packages/dev/s2-docs/src/searchUtils.tsx:471–478  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

469 * This allows pages to appear in a different section in search results than in navigation.
470 */
471export function getSearchSection(page: Page): string {
472 return (
473 (page.exports?.searchSection as string) ??
474 (page.exports?.group as string) ??
475 (page.exports?.section as string) ??
476 'Components'
477 );
478}
479
480export function getOrderedLibraries(currentPage: Page) {
481 const allLibraries = (Object.keys(TAB_DEFS) as Library[]).map(id => ({id, ...TAB_DEFS[id]}));

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected