Slab includes four overlay block types: Drawer, Sidebar, Popup, and Alert. Use overlays when you want to show content on top of the storefront without sending customers to a new page.
Each overlay block can be connected to one of Slab's built-in overlay actions, such as Account, Search, Menu, Primary cart, or Alternative cart. You can also create your own custom overlays by giving the overlay a custom ID and linking a button to that same ID.
The Drawer block opens in a sliding panel and can be positioned on the left or right side, or centered at the top or bottom.

When to use Drawer
The Sidebar block also opens from the left or right side of the screen, but it behaves more like a side panel. In Slab's overlay logic, sidebars stay independent from the body scroll locking used by popups and drawers.

When to use Sidebar
The Popup block opens as a centered modal overlay. It supports an optional Enable full background setting, which makes it more suitable for takeover-style experiences.

When to use Popup
The Alert block is the lightest overlay type. It appears in a corner of the screen and supports optional auto-close timing.

When to use Alert
Each overlay block includes an Overlay preset setting. This setting assigns the block to one of Slab's built-in overlay IDs instead of using a custom ID.
For drawers and sidebars, the built-in presets are Account, Search, Menu, Primary cart, Alternative cart, Quick buy, and Quick edit.
For popups, the built-in presets are the same as drawers and sidebars, plus Age verification.
For alerts, the built-in presets are Account, Search, Menu, Primary cart, Alternative cart, Age verification, Form response, Discount, Error, Quick buy, and Quick edit.
Use these presets when you want a block to act as the theme's default overlay for a built-in action. For example, setting a Drawer block to Search connects that block to Slab's built-in search overlay action. Setting a Popup block to Age verification connects it to the theme's age verification overlay.
This also gives you the flexibility to control and change what overlay type is assigned to what action. For example you could upate the Menu to use a Popup instead of a Drawer.
The Button block can directly trigger the built-in Account, Search, Menu, Primary cart, and Alternative cart overlay actions, or it can trigger a custom overlay ID.
You are not limited to Slab's built-in overlay presets. The overlay blocks also support custom IDs, and the Button block can open those custom overlays when the IDs match.
Use a simple ID such as newsletter-popup or size-guide. Reuse that exact value in both the overlay block and the button block.
Once both settings match, the button will open that overlay instead of linking to a URL.
Start by connecting your source repository and choosing the pages you want to publish.
You can then browse your documentation and ask questions about the content your team has shared.