Accordion
Build vertically collapsing accordions in combination with the Collapse component.
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.
This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes.
This is the third item's accordion body. It is hidden by default.
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button"
data-boodoo-toggle="collapse" data-boodoo-target="#collapseOne"
aria-expanded="true" aria-controls="collapseOne">
Accordion Item #1
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show"
aria-labelledby="headingOne" data-boodoo-parent="#accordionExample">
<div class="accordion-body">...</div>
</div>
</div>
</div>Flush
Add .accordion-flush to remove the default background-color, borders, and rounded corners.
Flush accordion body.
Flush accordion body.
Always open
Omit the data-boodoo-parent attribute on each .accordion-collapse to make accordion items stay open when another item is opened.