MCPcopy Index your code
hub / github.com/reactjs/react.dev / RouteItem

Interface RouteItem

src/components/Layout/getRouteMeta.tsx:26–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 | 'deprecated';
25
26export interface RouteItem {
27 /** Page title (for the sidebar) */
28 title: string;
29 /** Optional version flag for heading */
30 version?: 'canary' | 'major';
31 /** Optional page description for heading */
32 description?: string;
33 /* Additional meta info for page tagging */
34 tags?: RouteTag[];
35 /** Path to page */
36 path?: string;
37 /** Whether the entry is a heading */
38 heading?: boolean;
39 /** List of sub-routes */
40 routes?: RouteItem[];
41 /** Adds a section header above the route item */
42 hasSectionHeader?: boolean;
43 /** Title of section header */
44 sectionHeader?: string;
45 /** Whether it should be omitted in breadcrumbs */
46 skipBreadcrumb?: boolean;
47}
48
49export interface Routes {
50 /** List of routes */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected