Collapse panel
Bootstrap 5 Collapse panel component
Responsive collapse panel built with Bootstrap 5. Create intuitive, user-friendly panels that expand and collapse for better content organization.
Basic example
Click the buttons below to show and hide another element via class changes:
.collapse
hides content.collapsing
is applied during transitions.collapse.show
shows content
You can use a link with the href
attribute, or a button with the
data-mdb-target
attribute. In both cases, the
data-mdb-collapse-init
is required.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad
squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente
ea proident.
Accordion example
Click the accordions below to expand/collapse the accordion content.
This is the first item's accordion body. It is shown by default,
until the collapse plugin adds the appropriate classes that we use to style each
element. These classes control the overall appearance, as well as the showing and
hiding via CSS transitions. You can modify any of this with custom CSS or overriding
our default variables. It's also worth noting that just about any HTML can go within
the
.accordion-body
, though the transition does limit overflow.
This is the second item's accordion body. It is hidden by default,
until the collapse plugin adds the appropriate classes that we use to style each
element. These classes control the overall appearance, as well as the showing and
hiding via CSS transitions. You can modify any of this with custom CSS or overriding
our default variables. It's also worth noting that just about any HTML can go within
the
.accordion-body
, though the transition does limit overflow.
This is the third item's accordion body. It is hidden by default,
until the collapse plugin adds the appropriate classes that we use to style each
element. These classes control the overall appearance, as well as the showing and
hiding via CSS transitions. You can modify any of this with custom CSS or overriding
our default variables. It's also worth noting that just about any HTML can go within
the
.accordion-body
, though the transition does limit overflow.