Panel

The panel component is a container that supports flexible content layouts. It can be used to house other components such as fields, forms, videos, buttons, and more. The panel should not be confused with the drawer component, which allows you to surface information via a collapsable container.

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

View source on GitHub