Hi,
Sure thing, you can add collapse
class to as explained in the official documentation:
<div class="card shadow-sm">
<div class="card-header collapsible cursor-pointer rotate collapsed" data-bs-toggle="collapse" data-bs-target="#kt_docs_card_collapsible" aria-expanded="false">
<h3 class="card-title">Title
<div class="card-toolbar rotate-180">
<span class="svg-icon svg-icon-1">
</span>
</div>
</div>
<div class="collapse">
<div class="card-body">...</div>
<div class="card-footer">Footer</div>
</div>
</div>
https://getbootstrap.com/docs/5.0/components/collapse/#methods
Here is the action you want. I haven't had a chance to try it but I think it will work