--- id: Page section: components cssPrefix: pf-v6-c-page wrapperTag: div ---import './Page.css' ## Examples ### Vertical nav ```html
Content
Navigation
This is a default .pf-v6-c-page__main-section.
This .pf-v6-c-page__main-section uses .pf-m-secondary.
This is a default .pf-v6-c-page__main-section.
This is a page__main-body, one of three within one page__main-section.
This is a page__main-body, one of three within one page__main-section.
This is a page__main-body, one of three within one page__main-section.
``` ### Horizontal nav ```html
Content
This is a default .pf-v6-c-page__main-section.
This .pf-v6-c-page__main-section uses .pf-m-secondary.
This is a default .pf-v6-c-page__main-section.
``` ### Multiple sidebar body elements, padding, and fill ```html
Content
Navigation
inset content
content that is not inset
footer content
``` ### With or without fill ```html
Content
A regular page section.
This section uses .pf-m-fill to fill the available space. The .pf-v6-c-page__main-container must also have .pf-m-fill in order for the section to have space to stretch to full height.
This section uses .pf-m-no-fill and will not fill the available space.
``` ### Main section padding ```html
Content
Navigation
This .pf-v6-c-page__main-section has default padding.
This .pf-v6-c-page__main-section uses .pf-m-no-padding to remove all padding.
This .pf-v6-c-page__main-section uses .pf-m-no-padding .pf-m-padding-on-md to remove padding up to the md breakpoint.
``` ### Main section variations ```html
Content
Navigation
.pf-v6-c-page__main-subnav for horizontal subnav navigation
.pf-v6-c-page__main-tabs for tabs
.pf-v6-c-page__main-group for a group of page sections
.pf-v6-c-page__main-breadcrumb for breadcrumbs
.pf-v6-c-page__main-section for main sections
.pf-v6-c-page__main-wizard for wizards
``` ### Centered section ```html
Content
When a width limited page section is wider than the value of --pf-v6-c-page--section--m-limit-width--MaxWidth, the section will be centered in the main section.

The content in this example is placed in a card to better illustrate how the section behaves when it is centered. A card is not required to center a page section.
``` ### With dock ```html isBeta
logo
This is a default .pf-v6-c-page__main-section.
``` ### Sticky section dynamic ```html
Content
Breadcrumb
This .pf-v6-c-page__main-group uses .pf-m-sticky-top-base and .pf-m-sticky-top-stuck for dynamic sticky positioning with a fade-in background and shadow.
Content below the sticky section.
``` ## Documentation ### Overview This component provides the basic chrome for a page, including sidebar and main areas. ### Accessibility | Attribute | Applied to | Outcome | | -- | -- | -- | | `role="main"` | `.pf-v6-c-page__main` | Identifies the element that serves as the main region. | | `tabindex="-1"` | `.pf-v6-c-page__main` | Allows the main region to receive programmatic focus. **Required** | | `id="[id]"` | `.pf-v6-c-page__main` | Provides a hook for sending focus to new content. **Required** | | `tabindex="0"` | `.pf-v6-c-page__main-section.pf-m-overflow-scroll` | If a page section has overflow content that triggers a scrollbar, to ensure that the content is keyboard accessible, the page section must include either a focusable element within the scrollable region or the page section itself must be focusable by adding `tabindex="0"`. | ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-c-page` | `
` | Declares the page component. | | `.pf-v6-c-page__sidebar` | `