# Grid recent

## Overview

A grid block that displays the recently viewed products in a grid layout. Uses Alpine.js to display products from the recently viewed products store.

## Block limitations

This is a private block. It is intended for use only within specific parent blocks and should not be added directly to sections.

## Common use cases

* Display recently viewed products to encourage customers to return to products they've seen
* Adjust item count based on available space in your layout
* Use responsive visibility to show different counts on mobile vs desktop
* Product cards are dynamically loaded to prevent layout shifts

## Compatible blocks

The following blocks can be nested within this block:

* [Product card](https://help.brickspacelab.com/slab/content/blocks/cards/product-card) (dynamically loaded)

## Block settings

### General

| Setting                | Description                 | Options                   |
| ---------------------- | --------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility settings | Checkbox (default: false) |

### Content

| Setting    | Description                                           | Options                   |
| ---------- | ----------------------------------------------------- | ------------------------- |
| Item count | Maximum number of recently viewed products to display | Number input (default: 5) |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |
