Callback type

ActiveLink

From mothwing ยท src/config.js:97

Decides what a link on a page is to it: "page" for the page itself, "section" for a section it's in, false for neither. undefined leaves it to the default.

ActiveLink(
  href: string,
  route: Route
): false | "page" | "section" | undefined

Parameters

hrefstring
routeRoute

Returns

false | "page" | "section" | undefined