import { useState } from 'react'; import { Page, Masthead, MastheadMain, MastheadToggle, MastheadBrand, MastheadLogo, MastheadContent, PageSidebar, PageSidebarBody, PageSection, PageToggleButton, Toolbar, ToolbarContent, ToolbarItem } from '@patternfly/react-core'; export const PageMainSectionPadding: React.FunctionComponent = () => { const [isSidebarOpen, setIsSidebarOpen] = useState(true); const onSidebarToggle = () => { setIsSidebarOpen(!isSidebarOpen); }; const headerToolbar = ( header-tools ); const masthead = ( Logo {headerToolbar} ); const sidebar = ( Navigation ); return (

Section with default padding

Section with no padding

Section with padding on medium

Section with no padding on medium

); };