Layout
Modal and drawer
Dialogs and side panels for forms, confirmations, photos and filters.
Examples
Basic modal
Confirm
Sign in
Lightbox
Side drawer (filters)
Filters
Classes
| Class | Purpose |
|---|---|
.modal | Centered dialog. Sizes .modal-sm, .modal-lg. Needs aria-labelledby on a title. |
.modal-confirm + .modal-icon | Short confirmation with an icon. |
.modal-auth + .divider-text | Sign in form layout. |
.modal-lightbox | Image only, on a dark backdrop. |
.offcanvas.offcanvas-end + .offcanvas-footer | Side drawer with action buttons pinned at the bottom. |
All of these use Bootstrap's modal and offcanvas JavaScript, so focus trapping, the Escape key and screen reader support work with no extra code.