import React from 'react'; import { Page, Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, PageSidebar, PageSection, PageToggleButton, Toolbar, ToolbarContent, ToolbarItem, Card, CardBody } from '@patternfly/react-core'; import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon'; export const PageCenteredSection: React.FunctionComponent = () => { const [isNavOpen, setIsNavOpen] = React.useState(true); const onNavToggle = () => { setIsNavOpen(!isNavOpen); }; const headerToolbar = ( header-tools ); const header = ( Logo {headerToolbar} ); const sidebar = ; return ( When a width limited page section is wider than the value of --pf-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.
); };