Loading...

Collapse

Basic example

The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific elements you toggle.

Dolore non non ad elit ut deserunt nisi est tempor ad adipisicing ut consequat adipisicing. Laborum commodo labore irure elit reprehenderit adipisicing tempor nisi laborum tempor do esse occaecat nulla. Lorem enim sunt velit est consectetur dolore. Elit minim exercitation commodo proident dolore nostrud proident non aute esse magna ex.

Horizontal

The collapse plugin supports horizontal collapsing. Add the .collapse-horizontal modifier class to transition the width instead of height and set a width on the immediate child element.

This is some placeholder content for a horizontal collapse. It's hidden by default and shown when triggered.

Multiple toggles and targets

A <button> or <a> element can show and hide multiple elements by referencing them with a selector in its data-bs-target or href attribute.

Some placeholder content for the first collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.
Some placeholder content for the second collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.