Home / Blocks / E-commerce / Product Categories
7 blocks in this section

Shadcn Product Category Blocks

Organize store navigation with shadcn/ui category grids, image cards with trending labels, or a searchable list with subcategories.

How it works

Three steps to working code

Install a block and the files land in your repository. Nothing calls back to us.

  1. terminal

    $ npx shadcn@latest add @shadcnstore/product-category-1

    ✓ Checking registry

    ✓ Installing dependencies

    01

    Run one command

    Every preview above prints its own. The CLI writes the block and the components it needs into your project.

    Installation docs
  2. your project 3 files added

    components/

    ├─ ui/

    ├─ button.tsx

    └─ navigation-menu.tsx

    └─ product-category-1.tsx

    02

    Get real files

    React, TypeScript and Tailwind v4, with no framework imports. Next.js, Vite, Remix and Astro all work.

  3. product-category-1.tsx

    <Menu.Trigger

    - asChild

    + render={<button />}

    />

    03

    Edit it as your own

    Built on Base UI, not Radix, so keyboard and focus behaviour come from the primitive.

Blocks that hold state already carry the use client directive the Next.js App Router needs.

Guide

Product category blocks, the step before the grid#

A category block earns its place when a grid of products would answer the wrong question. If somebody arriving on your home page could plausibly want any of six unrelated departments, the extra click is cheaper than the wrong grid.

The seven category blocks#

  • Product Category Card 1: a four-up grid of subjects with a view-all action. Free.
  • Product Category Card 2: image-based cards with overlay text and trending badges. Free.
  • Product Category Card 3: a seven-column strip of small image tiles.
  • Product Category Card 4: a grid with icon avatars and item-count badges.
  • Product Category Card 5: a detailed list with icons, subcategories and search.
  • Product Category Card 6: a curated layout with status badges such as trending and featured.
  • Product Category Card 7: a three-up grid badged for new arrivals, best sellers and sale.

How deep the catalogue is#

Under about a dozen departments, a card or image grid is the right shape and everything is visible at once. Past that, Product Category 5 is the answer: a list with subcategories and search, because scanning tiles stops working when there are forty of them and no reader gets to the bottom.

Images, icons or counts#

Product Category 2 is built around photography and needs one usable image per tile, which is a real commitment. Where you do not have that, the icon and count layouts read far better than a grid of stock pictures that do not match your products. Item counts are also genuinely useful, since a department with four products and one with four hundred deserve different expectations.

Badges that mean something#

Trending, new and featured badges only work if they change. A permanent trending badge is furniture, and shoppers learn to ignore it within one visit. Drive them from real data or leave them off.

How many products behind each tile#

A category with three products and a category with three hundred should not look identical. The count badges in Product Category 4 are the cheapest fix, and where the imbalance is severe the honest answer is to merge the thin departments rather than dress them up. A shopper who clicks a tile and finds two items learns not to trust the next tile.

Naming categories#

Use the words customers use, not the internal merchandising term. The category name is also a URL and a heading, so it carries search weight, and a department called Solutions ranks for nothing and helps nobody.

Where categories sit#

Directly under the storefront hero, and often repeated as a strip further down for the visitor who scrolled past. Each one leads to a product grid with filters, which is where the coarse split you made here stops being enough.

FAQ

Product Categories questions, answered

What people ask before choosing a block from this collection.

When the catalogue is wide enough that a grid of products answers the wrong question. A category step is worth the extra click if a visitor arriving on the home page could plausibly want any of six unrelated departments.
Product Category 5 is a detailed list with icons, subcategories and search, which suits a catalogue deep enough that scanning tiles stops working. The card and image grids are the right choice when there are fewer than about a dozen departments.
Product Category 2 is built around imagery with overlay text and trending badges, so it needs one usable image per tile. Where you have no photography, the icon and text layouts read better than a grid of stock pictures that do not match your products.
Product Category 1 and Product Category 2 are free. The list, subcategory and search variants are Pro under the licence on the pricing page.

Documentation

The components behind these blocks

How to install, customise and combine the shadcn/ui components this collection is built from.

Free & Premium Templates

Launch Faster with Complete Templates

Love these blocks? Get our free dashboard and landing page templates with 30+ pre-built pages and all the components you need. Premium templates with advanced features launching soon at $69.

Free Templates Now
30+ Pages Included
Premium Coming Soon