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