Offcanvas

Offcanvas

You can use a link with the href attribute, or a button with the data-bs-target attribute. In both cases, the data-bs-toggle="offcanvas" is required.

Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Link with href

Offcanvas Placement

There’s no default placement for offcanvas components, so you must add one of the modifier classes below

Offcanvas top
  • Maecenas tempus, tellus eget rhoncus, sem quam semper.
  • Cum sociis natoque penatibus ridiculus mus.
  • Aenean vulputate eleifend tellus aenean leo ligula eleifend condimentum enim.
Offcanvas right
  • Maecenas tempus, tellus eget rhoncus, sem quam semper.
  • Cum sociis natoque penatibus ridiculus mus.
  • Aenean vulputate eleifend tellus aenean leo ligula eleifend condimentum enim.
Offcanvas bottom
  • Maecenas tempus, tellus eget rhoncus, sem quam semper.
  • Cum sociis natoque penatibus ridiculus mus.
  • Aenean vulputate eleifend tellus aenean leo ligula eleifend condimentum enim.
Offcanvas Left
  • Maecenas tempus, tellus eget rhoncus, sem quam semper.
  • Cum sociis natoque penatibus ridiculus mus.
  • Aenean vulputate eleifend tellus aenean leo ligula eleifend condimentum enim.

Offcanvas Backdrop

Scrolling the <body> element is disabled when an offcanvas and its backdrop are visible. Use the data-bs-scroll attribute to toggle <body> scrolling and data-bs-backdrop to toggle the backdrop.

Colored with scrolling

Try scrolling the rest of the page to see this option in action.

Offcanvas with backdrop
  • Maecenas tempus, tellus eget rhoncus, sem quam semper.
  • Cum sociis natoque penatibus ridiculus mus.
  • Aenean vulputate eleifend tellus aenean leo ligula eleifend condimentum enim.
Backdroped with scrolling

Try scrolling the rest of the page to see this option in action.