Skip to main content

Accordion

Show and hide content using the accordion component.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div class="accordion" id="accordion">
  <div class="accordion-item shadow mb-2">
    <h2 class="accordion-header" id="headingOne">
      <button
        class="accordion-button collapsed fs-4 fw-bold"
        type="button"
        data-bs-toggle="collapse"
        data-bs-target="#collapseOne"
        aria-expanded="false"
        aria-controls="collapseOne">
        Question #1
        <i class="fas fa-chevron-down" aria-hidden="true"></i>
      </button>
    </h2>
    <div class="accordion-collapse collapse" id="collapseOne" aria-labelledby="headingOne" data-bs-parent="#accordion">
      <div class="accordion-body">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
        aliqua.
      </div>
    </div>
  </div>
  ...
</div>

Bootstrap Documentation