# Offcanvas

An offcanvas element is a widget in the shop in which additional content or menus are placed outside the visible screen and made visible when necessary. In Shopware, the mobile menu and the off-canvas shopping cart are such elements.

<figure><img src="/files/4BhWE0uGpOqtPBNR4Otr" alt=""><figcaption></figcaption></figure>

For a special look, an **Margin (1)** can be defined around this off-canvas element, which sets the off-canvas element apart from the browser edges on larger devices. In addition, a **Width (2)** can be defined. The maximum width of the element is limited by the width of the device.

**Example:**

<figure><img src="/files/1DCPfdWSzV9jGLli9UwY" alt=""><figcaption><p>Offcanvas cart with margin</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://themedocs.zenit.design/en/styling/components/offcanvas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
