Some text lorem ipsum.
Some text lorem ipsum.
Some text lorem ipsum.
The following example shows how to create an offcanvas sidebar.
Some text lorem ipsum.
Some text lorem ipsum.
Some text lorem ipsum.
The .offcanvas-end class positions the offcanvas to the right of the page.
Some text lorem ipsum.
The .offcanvas-top class positions the offcanvas at the top of the page.
Some text lorem ipsum.
The .offcanvas-bottom class positions the offcanvas at the bottom of the page.
Some text lorem ipsum.
Dropdown buttons may be included in the offcanvas area.
Some text lorem ipsum.
By default, the offcanvas will render with a backdrop that dismisses the offcanvas on click. Set backdrop=false to maintain the canvas, when clicking away.
By default, scrolling the <body> element is disabled when an offcanvas and its backdrop are visible. This property can be reversed with data-bs-scroll="true".
Both the body can be scrolled and the offcanvas can persist, after clicking back onto the body.