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.

Sale
Classic T-Shirt
£29.99
£39.99
123

New
Premium Hoodie
£89.99
89

Denim Jacket
£149.99
£179.99
Installation
pnpm dlx shadcn@latest add https://gfed-registry.vercel.app/r/category-grid.jsonUsage
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

Sale
Classic T-Shirt
£29.99
£39.99
123

New
Premium Hoodie
£89.99
89

Denim Jacket
£149.99
£179.99
Minimal

Minimalist Tee
£24.99
7 colors

Simple Jeans
£69.99
7 colors

Basic Sweater
£49.99
7 colors
With Ratings

Sale
Designer Shirt
£89.99
£119.99
156

New
Premium Pants
£129.99
89

Limited
Luxury Watch
£299.99
£349.99
234
Last updated on