Skip to Content
DocsComponentsCategory Grid

Category Grid

A responsive grid component for displaying product collections that adapts to different screen sizes, includes smooth hover animations, and reuses the existing ProductCard component.

Classic T-Shirt
Sale

Classic T-Shirt

£29.99

£39.99

123
Premium Hoodie
New

Premium Hoodie

£89.99

89
Denim Jacket

Denim Jacket

£149.99

£179.99

Installation

pnpm dlx shadcn@latest add https://gfed-registry.vercel.app/r/category-grid.json

Usage

import { CategoryGrid } from '@/app/registry/ui/components/category-grid/category-grid';
import { CategoryGrid } from '@/app/registry/ui/components/category-grid/category-grid'; const products = [ { id: '1', image: { src: '/path/to/image.jpg', alt: 'Product name' }, title: 'Product Name', href: '/products/product-name', // Required for CategoryGrid price: { current: '29.99', old: '39.99' }, rating: { average: 4.5, count: 123 }, // Optional, per product badge: { label: 'Sale', variant: 'sale' }, // Optional, per product variant: 'default', // Optional, per product }, // ... more products ]; export function CategoryGridExample() { return ( <CategoryGrid products={products} title="Shop by Category" subtitle="Discover our curated collection" /> ); }

Examples

Default

Classic T-Shirt
Sale

Classic T-Shirt

£29.99

£39.99

123
Premium Hoodie
New

Premium Hoodie

£89.99

89
Denim Jacket

Denim Jacket

£149.99

£179.99

Minimal

Minimalist Tee

Minimalist Tee

£24.99

7 colors

Simple Jeans

Simple Jeans

£69.99

7 colors

Basic Sweater

Basic Sweater

£49.99

7 colors

With Ratings

Designer Shirt
Sale

Designer Shirt

£89.99

£119.99

156
Premium Pants
New

Premium Pants

£129.99

89
Luxury Watch
Limited

Luxury Watch

£299.99

£349.99

234
Last updated on