Skip to main content

Layout Blocks

Layout blocks are container blocks that organize and arrange other blocks. They are the backbone of Wave's flexible layout system, allowing you to create complex multi-column layouts, carousels, and grids without coding.

Group Block

The Group block is a flex container that holds and arranges child blocks. Think of it as a box that can stack blocks vertically or lay them out horizontally.

block-group.webp

Settings:

SettingOptionsDescription
DirectionColumn, RowStack blocks vertically or horizontally
AlignmentStart, Center, End, StretchHow blocks align on the cross axis
GapSize valueSpace between child blocks
WrapOn/OffWhether blocks wrap to the next line
ReverseOn/OffReverse the order of child blocks
OverflowVisible/HiddenClip overflowing content

Size controls:

  • Width and height with auto, fill, or custom options.

Visibility:

  • Show/hide on desktop and mobile independently.

Positioning:

  • Absolute positioning with z-index for overlay effects.

Appearance:

  • Background (color, gradient, image), border radius, border style, shadow.
  • Hover effects for background, border, and shadow.

Accepts child blocks: Any theme block or app block.

Use case

Use Group blocks to create multi-column layouts within a section. For example, a two-column "image + text" layout is simply a Group (direction: row) containing an Image block and another Group (direction: column) with Heading and Text blocks.

Layout Block

The Layout block is a more powerful container that supports grid, carousel, and masonry layouts. Use it when you need structured multi-item displays.

block-layout.webp

Layout types

Grid

Displays items in a responsive grid layout.

Settings:

  • Columns (desktop/tablet/mobile): Set the number of columns per breakpoint.
  • Gap: Space between grid items (global or custom).

Displays items in a horizontally scrollable carousel.

Settings:

  • Columns (desktop/tablet/mobile): Items visible at each breakpoint.
  • Per move: How many items to advance per navigation action.
  • Effect: Slide, fade, nature, water, or urban transition effects.
  • Speed: Transition animation speed.
  • Auto play: Enable automatic slide advancement.
  • Loop: Enable infinite loop scrolling.
  • Auto height: Adjust height based on current slide content.

Masonry

Displays items in a Pinterest-style masonry grid.

Settings:

  • Columns (desktop/tablet/mobile): Number of columns per breakpoint.
  • Gap: Space between masonry items.

Presets: Layout comes with pre-configured presets for common column counts (2, 3, and 4 columns).

Accepts child blocks: Layout Item blocks, which each contain your content blocks.

When using a Layout block in carousel mode, you can add these companion blocks to control navigation:

Adds previous/next arrow buttons to control the carousel.

Settings:

  • Icon type: Built-in icon or custom image.
  • Icon style: Preset or custom styling.
  • Size: Icon button width and height.
  • Colors: Icon and background colors.

Adds dot indicators showing the current slide position.

Settings:

  • Style: Dots, dashes, or numbers.
  • Color: Active and inactive indicator colors.

Adds a progress bar showing carousel scroll position.

Settings:

  • Color: Progress bar color.
  • Height: Bar thickness.
Building a product carousel
  1. Add a Layout block (type: Carousel)
  2. Add Product Card blocks as children
  3. Add a Carousel Navigation block for arrow controls
  4. Add a Carousel Pagination block for dot indicators