Zum Inhalt springen
CtrlK

ArdoProvider

Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.

Provides the site config, the sidebar, and the current page to Ardo's hooks. ArdoRoot renders it; render it yourself only in tests and isolated previews.

import { ArdoProvider } from "ardo/runtime"

<ArdoProvider config={…} sidebar={…}>{children}</ArdoProvider>

Props

NameTypeRequired
configArdoConfigYes
sidebarSidebarItem[]Yes
currentPagePageDataNo
childrenReactNodeYes

Props type: ArdoProviderProps