Click the buttons below to show and hide another element via class changes:
.collapsingis applied during transitions
You can use a link with the
href attribute, or a button with the
data-target attribute. In both cases, the
data-bs-toggle="collapse" is required.
<a> can show and hide multiple elements by referencing them with a JQuery selector in its
<a> can show and hide an element if they each reference it with their
Using the card component, you can extend the default collapse behavior to create an accordion. To properly achieve the accordion style, be sure to use
.accordion as a wrapper.