A page-level layout with an optional overlapping header. — <cs-content-layout>
Main content goes here.
Your resources and recommendations will appear here.
<cs-content-layout>
<div slot="header">Page header</div>
Main content area
</cs-content-layout>
default-paddingboolean
default: falseSet it to true if your page uses the app layout component with disableContentPaddings=true.
In that case, the content layout will become sensitive to the state of drawers in app layout and leave the necessary padding to avoid visual overlap with those elements.
disable-overlapboolean
default: falseDetermines whether the layout has an overlap between the header and content. If true, the overlap will be removed.
header-background-stylestring | ((mode: 'light' | 'dark') => string)Use this property to style the background of the header.
It can be:
background value for the header element. The header background spans across the full available width, independent of the specified maxContentWidth.
If set, the component will not add the default background color to the header.
header-variant'default' | 'high-contrast' | 'divider'
default: 'default'Determines the visual treatment for the header. Specifically:
default - Does not apply any visual treatment.high-contrast - Applies high-contrast to the background of the header and the elements contained within it.
If you are using the AppLayout component, set headerVariant="high-contrast" to apply the same treatment to the breadcrumbs and notifications slots.divider - Adds a horizontal separator between the header and the content.max-content-widthnumberMaximum width for the content. If set, all elements of the content layout (header, content, notifications, breadcrumbs) will be center-aligned and have the desired maximum width. If not set, all elements will occupy the full available width.
breadcrumbsUse this slot to add the breadcrumb group component to the content layout:
breadcrumbs slot.disableContentPaddings=true.Do not use in conjunction with the breadcrumbs slot in the app layout component.
defaultUse this slot to render the main content of the layout below the header.
headerUse this slot to render the header content for the layout.
notificationsUse this slot to display notifications to the content layout:
notifications slot.disableContentPaddings=true.Do not use in conjunction with the notifications slot in the app layout component.
secondaryHeaderUse this slot to add a secondary element inside the header. The secondary element will be displayed next to main header and occupy 25% of the available space.
Note that the secondary header will not have a high-contrast treatement, even if you set headerVariant to high-contrast.