Examples
Scrollable
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Main content
Props
Panel
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the panel | |
className | string | Class to add to outer div | |
isScrollable | boolean | Flag to add scrollable styling to the panel | |
variant | 'raised' | 'bordered' | 'secondary' | Adds panel variant styles |
PanelMain
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the panel main div | |
className | string | Class to add to outer div | |
maxHeight | string | Max height of the panel main div as a string with the value and unit |
PanelMainBody
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the panel main body div | |
className | string | Class to add to outer div |
PanelHeader
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the panel header | |
className | string | Class to add to outer div |
PanelFooter
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | Content rendered inside the panel footer | |
className | string | Class to add to outer div |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
.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 | ||
|