Skip to content
CtrlK

ArdoLayout

On this page

Layout component with explicit slot props.

import { ArdoLayout } from "ardo/ui"

<ArdoLayout>{children}</ArdoLayout>

Props

NameTypeRequiredDescription
headerReactNodeNoHeader content
sidebarReactNodeNoSidebar content
footerReactNodeNoFooter content
childrenReactNodeYesMain content
barebooleanNoRender a plain main element with document scrolling for bare routes.
scrollModeArdoScrollModeNoUse the document as the scroll container instead of the viewport shell.
showSkipLinkbooleanNoRender the built-in skip link. Disable when the host owns navigation chrome.
classNamestringNoAdditional CSS classes

Props type: ArdoLayoutProps

Example

<ArdoLayout
  header={<ArdoHeader logo="/logo.svg" title="Ardo" />}
  sidebar={<ArdoSidebar />}
  footer={<ArdoFooter message="MIT License" />}
>
  <ArdoOutlet />
</ArdoLayout>