Edge placement
Bootstrap's four edges: .offcanvas-start,
-end, -top and -bottom. Click an
edge of the screen below to slide a panel in from there. Width and
height are set with --bs-offcanvas-width and
--bs-offcanvas-height.
Show code
<button class="btn btn-primary" type="button" data-bs-toggle="offcanvas"
data-bs-target="#panel" aria-controls="panel">Open</button>
<div class="offcanvas offcanvas-start" tabindex="-1" id="panel" role="dialog" aria-labelledby="panel-title">
<div class="offcanvas-header">
<h2 class="offcanvas-title" id="panel-title">Start</h2>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">…</div>
</div>
<!-- offcanvas-end, offcanvas-top, offcanvas-bottom for the other edges -->