Skip to content

Offcanvas

Offcanvas panels slide in from any edge of the screen and are perfect for menus, filters, carts and quick settings that should not take a whole page. The examples show the four placements, backdrop and scrolling options, a responsive panel and complete ready-to-use drawers.

1Basic offcanvas

A panel that slides in from the left edge, opened by a button.

Hello there

Thousands of guests already trust us, and we work hard to keep it that way.

Order for pickup or delivery and enjoy the same dishes at home.

2Link as trigger

Any link with <code>href="#id"</code> and <code>data-bs-toggle="offcanvas"</code> can open the panel.

What is Koraara Deck?

About Koraara Deck

We have been feeding this neighbourhood for over a decade, and we still love it. Bread is baked every morning and pasta is rolled by hand in our kitchen. Every dish is cooked to order, so tell us if you would like anything changed. Our terrace is open from spring to autumn, with heaters for cooler evenings.

Learn more

3End placement

<code>.offcanvas-end</code> slides the panel in from the right.

Details

Cooking classes on Saturday mornings teach you our favourite recipes.

4Top placement

<code>.offcanvas-top</code> drops a short panel from the top - good for announcements or a search bar.

Search everything

5Bottom placement

<code>.offcanvas-bottom</code> works like a mobile bottom sheet.

Bottom sheet

Private dining rooms seat up to forty guests for birthdays and business dinners.

6Body scrolling

<code>data-bs-scroll="true"</code> with <code>data-bs-backdrop="false"</code> keeps the page scrollable and clickable behind the panel.

Page stays usable

Scroll the page while this panel is open. Clear prices, honest advice and no surprises along the way.

7Scrolling with backdrop

<code>data-bs-scroll="true"</code> alone keeps page scrolling but dims the page.

Backdrop and scrolling

We measure success by how many guests come back and tell their friends.

8Static backdrop

<code>data-bs-backdrop="static"</code> only closes from the close button - for panels with unsaved input.

Unsaved changes

Clicking outside will not close this panel.

9Dark panel

Set <code>data-bs-theme="dark"</code> on the panel for a dark sidebar in a light page.

Night shift

Book a table online in seconds, or call us for groups of eight or more.

10Navigation menu

A side menu built with a flush list group, icons and a badge.

11Nested menu

Collapsible sub-menus inside the panel keep long navigation tidy.

12Filters panel

A filter sidebar with checkboxes, a price range that shows its value, a sort select and apply/reset buttons.

Filter results

Category

13Shopping cart

A cart drawer listing items with thumbnails, a subtotal and checkout buttons.

Your cart

  • Truffle pasta
    Truffle pasta
    Qty 1
    $23.99
  • Seasonal soup
    Seasonal soup
    Qty 1
    $9.00
  • Chef's tasting plate
    Chef's tasting plate
    Qty 1
    $46.00
Subtotal$78.99
Checkout

14Notifications panel

An activity feed in an end panel, with a header action to mark everything as read.

Notifications

Every dish is cooked to order, so tell us if you would like anything changed.

just now

We listen first, then build a plan around what you actually need.

25 min ago

We have been feeding this neighbourhood for over a decade, and we still love it.

just now

Cooking classes on Saturday mornings teach you our favourite recipes.

6 hours ago

15Profile panel

User card with avatar, stats and account links - typical for an avatar button in the header.

Profile

Samir Patel

Samir Patel

Backend Engineer - Seoul

27Projects
8.2kFollowers
229Reviews

16Settings panel

Quick settings with switches and a select; the footer buttons stay at the bottom.

Quick settings

17Responsive offcanvas

<code>.offcanvas-lg</code> is a slide-in panel below the lg breakpoint and plain inline content above it. Narrow the window to see the button.

Sidebar

Vegan, vegetarian and gluten-free dishes are marked clearly on every menu.

18Contact form

A support form that slides in from the side, with a character counter on the message field.

How can we help?

0 / 400

19Share sheet

A short bottom panel with a grid of share actions, sized with an inline height.

20Chat panel

A support chat drawer: message bubbles in the body and an input pinned to the bottom.

Chat with Leo

Leo
Hi! I am Leo. How can I help today?
Do you offer takeaway?
Leo
Private dining rooms seat up to forty guests for birthdays and business dinners.