#Panel
A Panel is created by surrounding a block of content with ===
and including a title
for the Panel.
The title
must be separated from the opening ===
by one space. The pattern === My Panel
will work as expected, and ===My Panel
will not.
Multiple Panels can be stacked by repeating Panel component configurations.
Currently, Panel components cannot be nested within each other, only stacked. We're hoping to support nesting Panels in a future release. Let us know if you require the functionality.
All other components can be nested within any Panel component.
#Collapsed
By default, Panels are collapsible and will initially render in their expanded state. You can configure Panels to initially render in their collapsed state by using ==-
specifier.
Either just the opening ==-
can be configured, or both opening and closing ==-
can be used.
#Inner content
Any content can be added inside a Panel, include other components such as a code block and tables.
#Stacking
Multiple Panel components can be stacked into a group by repeating Panel component configurations.
A basic scenario is grouping two Panels:
As well, individual Panels within a stack can be configured as collapsed.
The following sample demonstrates a two-panel stack with the second Panel being collapsed.