Panel

A panel is a customizable container that can contain other components in flexible content layouts.

Examples

Basic

Main content
Header content

Main content

No body

Main content

Raised

Main content

Bordered

Main content

Secondary variant

Main content

Scrollable

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Props

Panel

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel
classNamestringClass to add to outer div
isScrollablebooleanFlag to add scrollable styling to the panel
variant'raised' | 'bordered' | 'secondary'Adds panel variant styles

PanelMain

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel main div
classNamestringClass to add to outer div
maxHeightstringMax height of the panel main div as a string with the value and unit

PanelMainBody

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel main body div
classNamestringClass to add to outer div

PanelHeader

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel header
classNamestringClass to add to outer div

PanelFooter

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel footer
classNamestringClass to add to outer div

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v6-c-panel--pf-v6-c-panel--Width
auto
.pf-v6-c-panel--pf-v6-c-panel--MinWidth
auto
.pf-v6-c-panel--pf-v6-c-panel--MaxWidth
none
.pf-v6-c-panel--pf-v6-c-panel--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-panel--pf-v6-c-panel--BoxShadow
none
.pf-v6-c-panel--pf-v6-c-panel--BorderRadius
6px
.pf-v6-c-panel--pf-v6-c-panel--before--BorderWidth
0
.pf-v6-c-panel--pf-v6-c-panel--before--BorderColor
(In light theme) #c7c7c7
.pf-v6-c-panel--pf-v6-c-panel--m-secondary--BackgroundColor
(In light theme) #f2f2f2
.pf-v6-c-panel--pf-v6-c-panel--m-bordered--before--BorderWidth
1px
.pf-v6-c-panel--pf-v6-c-panel--m-raised--BoxShadow
0px 4px 9px 0px rgba(41, 41, 41, 0.1500)
.pf-v6-c-panel--pf-v6-c-panel--m-raised--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-panel--pf-v6-c-panel__header--PaddingBlockStart
1rem
.pf-v6-c-panel--pf-v6-c-panel__header--PaddingInlineEnd
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__header--PaddingBlockEnd
1rem
.pf-v6-c-panel--pf-v6-c-panel__header--PaddingInlineStart
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__main--MaxHeight
none
.pf-v6-c-panel--pf-v6-c-panel__main--Overflow
visible
.pf-v6-c-panel--pf-v6-c-panel__main-body--PaddingBlockStart
1rem
.pf-v6-c-panel--pf-v6-c-panel__main-body--PaddingInlineEnd
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__main-body--PaddingBlockEnd
1rem
.pf-v6-c-panel--pf-v6-c-panel__main-body--PaddingInlineStart
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__footer--PaddingBlockStart
0.5rem
.pf-v6-c-panel--pf-v6-c-panel__footer--PaddingInlineEnd
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__footer--PaddingBlockEnd
0.5rem
.pf-v6-c-panel--pf-v6-c-panel__footer--PaddingInlineStart
1.5rem
.pf-v6-c-panel--pf-v6-c-panel__footer--BoxShadow
none
.pf-v6-c-panel--pf-v6-c-panel--m-scrollable__main--MaxHeight
18.75rem
.pf-v6-c-panel--pf-v6-c-panel--m-scrollable__main--Overflow
auto
.pf-v6-c-panel--pf-v6-c-panel--m-scrollable__footer--BoxShadow
0px -10px 9px -8px rgba(41, 41, 41, 0.1500)
.pf-v6-c-panel--pf-v6-c-panel--m-scrollable__footer--PaddingBlockStart
1rem
.pf-v6-c-panel--pf-v6-c-panel--m-scrollable__footer--PaddingBlockEnd
1rem
.pf-v6-c-panel.pf-m-bordered--pf-v6-c-panel--before--BorderWidth
1px
.pf-v6-c-panel.pf-m-secondary--pf-v6-c-panel--BackgroundColor
(In light theme) #f2f2f2
.pf-v6-c-panel.pf-m-raised--pf-v6-c-panel--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-panel.pf-m-raised--pf-v6-c-panel--BoxShadow
0px 4px 9px 0px rgba(41, 41, 41, 0.1500)
.pf-v6-c-panel.pf-m-scrollable--pf-v6-c-panel__main--MaxHeight
18.75rem
.pf-v6-c-panel.pf-m-scrollable--pf-v6-c-panel__main--Overflow
auto
.pf-v6-c-panel.pf-m-scrollable--pf-v6-c-panel__footer--BoxShadow
0px -10px 9px -8px rgba(41, 41, 41, 0.1500)
.pf-v6-c-panel.pf-m-scrollable--pf-v6-c-panel__footer--PaddingBlockStart
1rem
.pf-v6-c-panel.pf-m-scrollable--pf-v6-c-panel__footer--PaddingBlockEnd
1rem