Skip to content
CtrlK

ArdoDocPage

On this page

A documentation page with Ardo's layout around it: header, sidebar, article, outline, and footer. ArdoRoot renders the same for every page; use this only in a custom root.

import { ArdoDocPage } from "ardo/ui"

<ArdoDocPage>{children}</ArdoDocPage>

Props

NameTypeRequiredDescription
childrenReactNodeYes
editLink{ pattern: string; text?: string }NoEdit link configuration (overrides ArdoSiteConfig)
lastUpdated{ enabled?: boolean; text?: string; formatOptions?: Intl.DateTimeFormatOptions }NoLast updated configuration (overrides ArdoSiteConfig)
outlineReactNodeNoOptional in-page navigation, displayed after the article heading.
headerReactNodeNoReplace the article heading; false omits it. Undefined keeps the default.
footerReactNodeNoReplace edit/updated metadata and previous/next links; false omits them.
tocLabelstringNoTOC label (forwarded to TOC).
tocSource"metadata" | "dom"NoOutline source. DOM mode includes component-rendered headings after hydration.
railReactNodeNoReplace the right-hand page rail; false omits it. Undefined keeps the default.

Props type: ArdoDocPageProps

Example

<ArdoDocPage>
  <ArdoOutlet />
</ArdoDocPage>