Honeycomb

page-container

Props

Prop nameTypeDefaultDescription
Elem"div" | "main" | "section" | undefineddiv
hasFixedHeaderboolean | "no-nav" | undefinedfalse

Adds top padding to give space for fixed honeycomb header. Use "no-nav" if the page header does not have a navigation, so the space is smaller on tablets.

extraClassesstring | undefined

Custom CSS class name.

childrenReactNodeRequired

The page content.

PageContainer takes care of forming your page content area, this includes following things:

  • limiting the width of the area;
  • centering the limited area on the screen;
  • providing optional top spacing for layouts with fixed headers compensating for headers width.

Please refer to MainWrapper component docs for code examples and usage in context with other layout components.