# Ecommerce Category Preview: Grid Preview

A category preview arranging collections in an even grid of image tiles, giving a clean overview of every department on a busy ecommerce home page.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/grid-preview
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce), Free tier
- Group: [Category Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/grid-preview.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-category-preview-grid-preview
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/ecommerce-category-preview-grid-preview.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/ecommerce/category-preview/grid-preview`

## About this block

Grid Preview arranges product categories in an even responsive grid of image
tiles. One tile spans two columns and two rows as a featured card, and the
remaining tiles fill the grid at equal size. Each tile overlays a gradient
across its image so the category name, a product count, and any status badges
(Trending, New Arrival) remain legible. On hover the image scales gently, a
subtle tint washes over the card, and an Explore button slides in from the
left.

The section carries no heading or wrapper chrome, so it drops cleanly into any
page column. Every tile is driven by a data array, meaning you can add or
remove categories, change names and counts, and toggle the featured, trending,
or new flags without touching the layout logic.

## When to use

Reach for this block when you need a clean department map at the top of a
homepage or a category landing page and want shoppers to see every section at
once rather than scrolling through a carousel. For a fintech or banking
product, the same grid pattern works well for surfacing account types, plan
tiers, or service areas where equal visual weight matters. It outperforms a
horizontal scroll when the number of categories is small enough to fit in one
glance, and it outperforms a plain list when images carry the brand.

A natural flow around it on an Ecommerce page:

**Before**

- A [Promo Section](https://www.shadcn-ui-blocks.com/blocks/ecommerce/promo-sections) to anchor the page with
  a campaign banner before the department overview
- A short hero to orient first-time visitors to the store

**After**

- A [Product List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list) to pull shoppers from the
  category overview into specific items
- [Customer Reviews](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-customer-reviews) to build
  confidence after a shopper picks a category

## What you can display

The grid is a strong fit for any situation where a fixed set of categories
needs equal real estate. A few ways to use it beyond a standard storefront:

- **Account or plan tiers.** Replace product names with plan names and the
  product count with a one-line benefit to give prospects a scannable tier
  map before they reach a pricing table.
- **Service areas or departments.** Use the featured tile for your flagship
  offering and fill the grid with supporting services, each with a count of
  available options.
- **Seasonal or curated collections.** Mark new arrivals and trending
  collections with badges so returning visitors spot what changed since their
  last visit.

> Tip: keep the featured tile to one per grid so the asymmetric span reads as
> intentional; two large tiles compete and neither stands out.

## More in Ecommerce Category Preview

- [Carousel Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/carousel-preview)
- [Expandable Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/expandable-preview)
- [Magazine Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/magazine-preview)
- [Scrolling Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/scrolling-preview)
- [Split Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/split-preview)
- [Three Column Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-preview/three-column-preview)
