Side panel
Bootstrap 5 Side panel component
Responsive Side panel built with Bootstrap 5. Examples of responsive side panels which include slides, navigation, collapsing and more.
Basic example
In the basic version, the side panel will appear over your website's content after clicking on a toggler.
Note: Use show
and hide
methods to toggle panel with JavaScript.
Note: Adding the show
class to a sidenav collapse element will expand this category on render.
Slide
Passing a selector of an inner element to the
scrollContainer
option will initialize MDB scrollbar only on this container (by default it's initialized on the sidenav's main element).
Collapse
Add .sidenav-collapse
to ul
to get collapse side panel.
Slim example
You can hide/show elements in the slim mode by setting
data-mdb-slim
attribute on them - depending on value they will be either visible
only in a slim or an expanded mode. Elements without this attribute will appear in both modes.