Skip to content
Patternfly Logo

Page

The page component is used to define the basic layout of a page with either vertical or horizontal navigation.

  • All but the last example set the isManagedSidebar prop on the Page component to have the sidebar automatically close for smaller screen widths. You can also manually control this behavior by not adding the isManagedSidebar prop and instead:

    1. Add an onNavToggle callback to PageHeader
    2. Pass a boolean into the isNavOpen prop to PageSidebar

    The last example demonstrates this.

  • To make the page take up the full height, it is recommended to set the height of all ancestor elements up to the page component to 100%

Layouts

This demonstrates a variety of navigation patterns in the context of a full page layout. These can be used as a basis for choosing the most appropriate page template for your application.

Sticky section group

Sticky section group screenshot

Sticky section group (using PageHeader)

This demo is provided becuase PageHeader and PageHeaderTools are still in use; however, going forward Masthead and Toolbar should be used to make headers rather than PageHeader and PageHeaderTools.

Sticky section group (using PageHeader) screenshot

Sticky section group (alternate syntax and using PageHeader)

Please see this note regarding PageHeader.

Sticky section group (alternate syntax and using PageHeader) screenshot

Sticky section breadcrumb (with breakpoints)

Sticky section breadcrumb (with breakpoints) screenshot

View source on GitHub