Skip to content
CtrlK

ArdoPageProvider

On this page

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