Slab offers two main layout blocks for arranging content: Default grid and Flex grid. Each suits different layout needs. This guide covers both blocks and when to use them.
The Default grid block creates a responsive grid of equal-width columns. Use it for product grids, image galleries, card layouts, or any content that benefits from a uniform grid structure.

When to use Default grid
The Flex grid block arranges child blocks in a row or column with flexible alignment and spacing. Use it for side-by-side layouts, stacked sections, hero layouts, or any content that needs flexible widths and alignment.

When to use Flex grid
Using the Flex grid you can create many unique layouts. Here are a few examples to help illustrate how to achieve different grid configurations.
Use this layout for content on one side that stays visible while scrolling.

Use this layout for a navigation or header bar.

Use this layout for editorial-style layouts.

Use this layout for editorial-style layouts.

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.