A resizable split layout with a main content area and a side panel. — <cs-panel-layout>
<cs-panel-layout panel-position="right" resizable default-panel-size="300">
<div slot="main">Main content</div>
<div slot="panel">Side panel</div>
</cs-panel-layout>
default-panel-sizenumberInitial panel size, for uncontrolled behavior.
The actual size will be constrained by minPanelSize and maxPanelSize, if set.
displayPanelLayoutProps.Display
default: 'all'Determines which content is displayed:
i18n-stringsPanelLayoutProps.I18nStringsAn object containing all the necessary localized strings required by the component.
main-contentunknownrequiredMain content area displayed next to the panel.
main-focusablePanelLayoutProps.FocusableConfigMakes the main content area focusable. This should be used if there are no focusable elements inside the content, to ensure it is keyboard scrollable.
Provide either {ariaLabel: "Main label"} or {ariaLabelledby: "main-label-id"}
max-panel-sizenumberThe maximum size of the panel.
min-panel-sizenumberThe minimum size of the panel.
panel-contentunknownrequiredPanel contents.
panel-focusablePanelLayoutProps.FocusableConfigMakes the panel content focusable. This should be used if there are no focusable elements inside the panel, to ensure it is keyboard scrollable.
Provide either {ariaLabel: "Panel label"} or {ariaLabelledby: "panel-label-id"}
panel-positionPanelLayoutProps.PanelPosition
default: 'side-end'Position of the panel with respect to the main content
panel-sizenumberSize of the panel. If provided, and panel is resizable, the component is controlled,
so you must also provide onPanelResize.
The actual size will be constrained by minPanelSize and maxPanelSize, if set.
resizableboolean
default: falseIndicates whether the panel is resizable.
layoutChangeCustomEvent<PanelLayoutProps.PanelResizeDetail>Called when the panel and/or main content size changes. This can be due to user resizing or changes to the available space on the page.
panelResizeCustomEvent<PanelLayoutProps.PanelResizeDetail>Called when the user resizes the panel.