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

Plain PageSection

This section uses isPlain to apply plain styling with no background color.

Default PageSection

This section has the default styling with a background color.

PageSection inside Plain PageGroup

This section is inside a PageGroup with isPlain applied.

Another Section in Plain Group

Both sections are grouped with plain styling.

Secondary Variant Section

This section uses the secondary variant for contrast.

); };