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
| Name | Type | Required |
|---|---|---|
config | ArdoConfig | Yes |
sidebar | SidebarItem[] | Yes |
currentPage | PageData | No |
children | ReactNode | Yes |
Props type: ArdoProviderProps