Page

Examples

Vertical Page Layout

Section with darker background
Section with dark background
Section with light background
Copied to clipboard

Horizontal Page Layout

Section with darker background
Section with dark background
Section with light background
Copied to clipboard

Page Props

The Page component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
nullContent rendered inside the main section of the page layout (e.g. <PageSection />)
className
string
''Additional classes added to the page layout
header
node
nullHeader component (e.g. <PageHeader />)
sidebar
node
nullSidebar component for a side nav (e.g. <PageSidebar />)

PageHeader Props

The PageHeader component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the page header
logo
node
nullComponent to render the logo/brand (e.g. <Brand />)
logoProps
object
nullAdditional props passed to the logo anchor container
toolbar
node
nullComponent to render the toolbar (e.g. <Toolbar />)
avatar
node
nullComponent to render the avatar (e.g. <Avatar />
topNav
node
nullComponent to render navigation within the header (e.g. <Nav />
showNavToggle
bool
falseTrue to show the nav toggle button (toggles side nav)
onNavToggle
func
() => undefinedCallback function to handle the side nav toggle button

PageSidebar Props

The PageSidebar component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the page sidebar
nav
node
nullComponent to render the side navigation (e.g. <Nav />
isNavOpen
bool
trueTrue if the side nav is shown

PageSection Props

The PageSection component accepts the following props.

NameTypeRequiredDefaultDescription
children
node
nullContent rendered inside the section
className
string
''Additional classes added to the section
variant
enum: default, light, dark, darker
'default'Section background color variant