New alerts

Collapse

Basic collapse

Click the buttons below to show and hide another element via class changes.

Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
Horizontal

The collapse plugin supports horizontal collapsing.

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. Conversely, multiple <button> or <a> elements can show and hide the same element if they each reference it with their 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.