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
| Name | Type | Required | Description |
|---|---|---|---|
base | string | No | Public base path of the site, with leading and trailing slash. |
component | ComponentType | No | Page component, or the error component when error is set. |
error | ArdoPageError | No | Error that replaced the page content. |
handle | unknown | No | The route module's handle export. |
path | string | No | Path of the page without the base path, starting with a slash. |
source | { relativePath: string; lastUpdated: number } | No | Source identity and modification time supplied by the route table. |
children | ReactNode | Yes |
Props type: ArdoPageProviderProps