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

Scrollable with auto height

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Main content

Pill

Main content

Props

Panel

*required
NameTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the panel
classNamestringClass to add to outer div
hasNoBorder BetabooleanFlag to remove the panel's border
isAutoHeight BetabooleanWhen used with a scrollable panel, sets the panel to auto height
isFullHeight BetabooleanFlag to make the panel fill the available height of its container
isGlass BetabooleanModifies the panel to use glass styling when the glass theme is enabled
isPill BetabooleanUses pill (fully rounded) border radius for the panel
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