Saltar al contenido
⌘K

NavigationConfig

Ver como Markdown
En esta página
Esta referencia de la API se genera a partir de los comentarios de TypeScript en inglés. Los nombres, las firmas y los ejemplos corresponden al paquete publicado.

How the browser moves between pages. Every link still loads a full document.

import type { NavigationConfig } from "ardo/config"

type NavigationConfig = {
    /**
     * Cross-fade between pages with cross-document view transitions. Browsers without support,
     * and readers who prefer reduced motion, navigate without the animation.
     */
    viewTransitions?: boolean;
    /**
     * Start loading a linked page while the pointer rests on its link, with the Speculation Rules
     * API. `"prefetch"` downloads the document; `"prerender"` also renders it. Production builds
     * only.
     */
    speculation?: false | "prefetch" | "prerender";
};

Properties

NameTypeRequiredDescription
viewTransitionsbooleanNoCross-fade between pages with cross-document view transitions. Browsers without support,
and readers who prefer reduced motion, navigate without the animation.
speculationfalse | "prefetch" | "prerender"NoStart loading a linked page while the pointer rests on its link, with the Speculation Rules
API. "prefetch" downloads the document; "prerender" also renders it. Production builds
only.