Toggle the visibility of content.
<!-- Link with href -->
<a href="#collapseExample" class="btn btn-outline-secondary mb-3" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="collapseExample">
Link with href
</a>
<!-- Button with data-bs-target -->
<button type="button" class="btn btn-outline-secondary mb-3" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-bs-target
</button>
<!-- Collapse -->
<div class="collapse" id="collapseExample">
<div class="card card-body">
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
</div>
</div>
// Link with href
a(href="#collapseExample", data-bs-toggle="collapse", role="button", aria-expanded="false", aria-controls="collapseExample").btn.btn-outline-secondary.mb-3
| Link with href
// Button with data-bs-target
button(type="button", data-bs-toggle="collapse", data-bs-target="#collapseExample", aria-expanded="false", aria-controls="collapseExample").btn.btn-outline-secondary.mb-3
| Button with data-bs-target
// Collapse
#collapseExample.collapse
.card.card-body
| At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
<!-- Horizotal (width) collapse -->
<button type="button" class="btn btn-outline-secondary mb-3" data-bs-toggle="collapse" data-bs-target="#collapseHorizontal" aria-expanded="false" aria-controls="collapseHorizontal">
Toggle width collapse
</button>
<div class="collapse collapse-horizontal" id="collapseHorizontal">
<div class="card card-body" style="width: 30rem;">
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa officia.
</div>
</div>
// Horizotal (width) collapse
button(type="button", data-bs-toggle="collapse", data-bs-target="#collapseHorizontal", aria-expanded="false", aria-controls="collapseHorizontal").btn.btn-outline-secondary.mb-3
| Toggle width collapse
#collapseHorizontal.collapse.collapse-horizontal
.card.card-body(style="width: 30rem;")
| At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa officia.
<!-- Toggle first element -->
<a href="#multiCollapseExample1" class="btn btn-outline-secondary me-2 mb-3" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">
Toggle first element
</a>
<!-- Toggle second element -->
<button type="button" class="btn btn-outline-secondary me-2 mb-3" data-bs-toggle="collapse" data-bs-target="#multiCollapseExample2" aria-expanded="false" aria-controls="multiCollapseExample2">
Toggle second element
</button>
<!-- Toggle both elements -->
<button type="button" class="btn btn-outline-secondary mb-3" data-bs-toggle="collapse" data-bs-target=".multi-collapse" aria-expanded="false" aria-controls="multiCollapseExample1 multiCollapseExample2">
Toggle both elements
</button>
<div class="row">
<div class="col-sm-6">
<!-- Collapse 1 -->
<div class="collapse multi-collapse" id="multiCollapseExample1">
<div class="card card-body mb-2">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</div>
</div>
</div>
<div class="col-sm-6">
<!-- Collapse 2 -->
<div class="collapse multi-collapse" id="multiCollapseExample2">
<div class="card card-body mb-2">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</div>
</div>
</div>
</div>
// Toggle first element
a(href="#multiCollapseExample1", data-bs-toggle="collapse", role="button", aria-expanded="false", aria-controls="multiCollapseExample1").btn.btn-outline-secondary.me-2.mb-3
| Toggle first element
// Toggle second element
button(type="button", data-bs-toggle="collapse", data-bs-target="#multiCollapseExample2", aria-expanded="false", aria-controls="multiCollapseExample2").btn.btn-outline-secondary.me-2.mb-3
| Toggle second element
// Toggle both elements
button(type="button", data-bs-toggle="collapse", data-bs-target=".multi-collapse", aria-expanded="false", aria-controls="multiCollapseExample1 multiCollapseExample2").btn.btn-outline-secondary.mb-3
| Toggle both elements
.row
.col-sm-6
// Collapse 1
#multiCollapseExample1.collapse.multi-collapse
.card.card-body.mb-2
| Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
.col-sm-6
// Collapse 2
#multiCollapseExample2.collapse.multi-collapse
.card.card-body.mb-2
| Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.