Skip to content
CtrlK

ArdoProvider

On this page

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