Skip to content

Commit

Permalink
5212 added bootstrap 5.3 collapse component (#5290)
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrTochonyi authored Jan 4, 2024
1 parent 53508b8 commit 9fb06c8
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions bootstrap-5-3-new.html
Original file line number Diff line number Diff line change
Expand Up @@ -6392,6 +6392,100 @@ <h4>Color schemes</h4>
</div>
</div>
</div>
<div class="doc-space line">
<h2 class="block-title">Collapse</h2>
<div class="html-center">
<h4>Ordinary Collapse</h4>
<p>
Bootstrap:
<a
href="https://getbootstrap.com/docs/5.3/components/collapse/#example"
target="_blank"
>https://getbootstrap.com/docs/5.3/components/collapse/#example</a
>
</p>
</div>
<div class="html-center mb-3">
<p class="d-inline-flex gap-1">
<a class="btn btn-primary" id="collapse-ordinary-link" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
Link with href
</a>
<button class="btn btn-primary" id="collapse-ordinary-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-bs-target
</button>
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
</div>
<hr>
<div class="html-center">
<h4>Horizontal</h4>
<p>
Bootstrap:
<a
href="https://getbootstrap.com/docs/5.3/components/collapse/#horizontal"
target="_blank"
>https://getbootstrap.com/docs/5.3/components/collapse/#horizontal</a
>
</p>
</div>
<div class="html-center mb-3">
<p>
<button class="btn btn-primary" id="collapse-horizontal-button" data-bs-toggle="collapse" data-bs-target="#collapseWidthExample" aria-expanded="false" aria-controls="collapseWidthExample">
Toggle width collapse
</button>
</p>
<div style="min-height: 120px;">
<div class="collapse collapse-horizontal" id="collapseWidthExample">
<div class="card card-body" style="width: 300px;">
This is some placeholder content for a horizontal collapse. It's hidden by default and shown when triggered.
</div>
</div>
</div>
</div>
<hr>
<div class="html-center">
<h4>Multiple toggles and targets</h4>
<p>
Bootstrap:
<a
href="https://getbootstrap.com/docs/5.3/components/collapse/#multiple-toggles-and-targets"
target="_blank"
>https://getbootstrap.com/docs/5.3/components/collapse/#multiple-toggles-and-targets</a
>
</p>
</div>
<div class="html-center mb-3">
<p class="d-inline-flex gap-1">
<a class="btn btn-primary" id="collapse-multiple-toggles-link-first" data-bs-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">Toggle first element</a>
<button class="btn btn-primary" id="collapse-multiple-toggles-button-second" type="button" data-bs-toggle="collapse" data-bs-target="#multiCollapseExample2" aria-expanded="false" aria-controls="multiCollapseExample2">Toggle second element</button>
<button class="btn btn-primary" id="collapse-multiple-toggles-button-first-and-second" type="button" data-bs-toggle="collapse" data-bs-target=".multi-collapse" aria-expanded="false" aria-controls="multiCollapseExample1 multiCollapseExample2">Toggle both elements</button>
</p>
<div class="row">
<div class="col">
<div class="collapse multi-collapse" id="multiCollapseExample1">
<div class="card card-body">
Some placeholder content for the first collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
</div>
<div class="col">
<div class="collapse multi-collapse" id="multiCollapseExample2">
<div class="card card-body">
Some placeholder content for the second collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.
</div>
</div>
</div>
</div>
</div>



</div>




Expand Down

0 comments on commit 9fb06c8

Please sign in to comment.