Saltar al contenido
CtrlK

ArdoPageProvider

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.

Describe the page being rendered. Ardo's renderer provides it for every page; tests and isolated previews use it to render components at a given path.

import { ArdoPageProvider } from "ardo/runtime"

<ArdoPageProvider>{children}</ArdoPageProvider>

Props

NameTypeRequiredDescription
basestringNoPublic base path of the site, with leading and trailing slash.
componentComponentTypeNoPage component, or the error component when error is set.
errorArdoPageErrorNoError that replaced the page content.
handleunknownNoThe route module's handle export.
pathstringNoPath of the page without the base path, starting with a slash.
source{ relativePath: string; lastUpdated: number }NoSource identity and modification time supplied by the route table.
childrenReactNodeYes

Props type: ArdoPageProviderProps