Offcanvas
Offcanvas panels for filters, contextual detail, and layered utility workflows
Use offcanvas panels when content should stay attached to the current screen instead of feeling like a full modal. This page standardizes placement, width, scroll strategy, and embedded utility patterns for Lumora drawers.
1. Variant Matrix
Use drawers for filters, utility trays, and secondary task flows
2. Interaction Playground
Tune placement, width, tone, and behavior for a live preview drawer
3. Placement and Sizing
Choose placement based on whether the drawer complements reading or blocks primary motion
4. State Modeling
Backdrop and scroll strategy determine whether the drawer feels modal or supplemental
Preferred when users should focus on configuration before returning to the page.
Use when the page should remain readable while the drawer is open.
5. Composition Patterns
Typical Lumora uses include bulk filters, record inspectors, and settings trays
6. Real-use Snippets
Copy-ready offcanvas markup for common utility panels
<button class="btn btn-outline" type="button" data-bs-toggle="offcanvas" data-bs-target="#detailDrawer">
Open details
</button>
<div class="offcanvas offcanvas-end offcanvas-lumora" tabindex="-1" id="detailDrawer">
<div class="offcanvas-header">
<h5 class="offcanvas-title">Record details</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas"></button>
</div>
<div class="offcanvas-body">Drawer content.</div>
</div>
<div class="offcanvas offcanvas-end offcanvas-lumora offcanvas-lumora--soft" tabindex="-1" id="filterDrawer" data-bs-scroll="false" data-bs-backdrop="true">
<div class="offcanvas-header">
<h5 class="offcanvas-title">Advanced filters</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas"></button>
</div>
<div class="offcanvas-body">Form controls...</div>
</div>
<div class="offcanvas offcanvas-bottom offcanvas-lumora" tabindex="-1" id="mobileTray" data-bs-scroll="true">
<div class="offcanvas-header">
<h5 class="offcanvas-title">Quick actions</h5>
</div>
<div class="offcanvas-body">Action shortcuts...</div>
</div>