![]() |
VOOZH | about |
Spectre Panels are the flexible view container with an auto-expand content section. Panels are similar to the card component with more flexibility. For example, it can be used to create a conversation layout.
To create a panel we need to add a container element with the panel class. And add child elements with the panel-header, panel-nav, panel-body and/or panel-footer classes. The panel-body can be auto-expanded and vertically scrollable.
Spectre Panels Class:
Syntax:
<div class="panel"> <div class="panel-header"> <div class="panel-title">..</div> </div> <div class="panel-nav"> ... </div> <div class="panel-body"> ... </div> <div class="panel-footer"> ... </div> </div>
The below example illustrates the Spectre Panels:
Example: In this example, we will create a panel that contains all the sections of a footer like a header, nav, body and footer.
Output:
Reference: https://picturepan2.github.io/spectre/components/panels.html