templates/components/accordion/single.html.twig line 1

Open in your IDE?
  1. <div class="accordion {{ color ?? '' }}" id="{{ accordionId }}">
  2.     <div class="accordion-item my-2 border-0 rounded-0">
  3.         {% set itemId = [accordionId, 'accordion'|slug]|join('-')|lower %}
  4.         <div class="accordion-header" id="{{ itemId }}">
  5.             <button class="d-flex align-items-center accordion-button icon collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-{{ itemId }}" aria-expanded="false" aria-controls="collapse-{{ itemId }}">
  6.                 <span class="fw-bolder">{{ title|default('Accordion Title') }}</span>
  7.             </button>
  8.         </div>
  9.         <div id="collapse-{{ itemId }}" class="accordion-collapse collapse" aria-labelledby="{{ itemId }}" data-bs-parent="#{{ accordionId }}">
  10.             <div class="accordion-body">
  11.                 {% block accordion_body %}{% endblock %}
  12.             </div>
  13.         </div>
  14.     </div>
  15. </div>