Product List

PreviousNext

Display products in clean and engaging Tailwind CSS product list sections. These layouts feature images, titles, prices, and brief descriptions, making browsing effortless. Perfect for online stores, marketplaces, and e-commerce platforms aiming for modern, visually appealing, and conversion-focused product displays.

Docs
bunduicomponent

Preview

Loading preview…
examples/blocks/ecommerce/product-list/01/page.tsx
import Link from "next/link";
import Image from "next/image";

const products = [
  {
    title: "White crew-Neck T-Shirt",
    image: "/images/products/list1.png",
    price: "$29.00"
  },
  {
    title: "White crew-Neck T-Shirt",
    image: "/images/products/list2.png",
    price: "$29.00"
  },
  {
    title: "White crew-Neck T-Shirt",
    image: "/images/products/list3.png",
    price: "$29.00"
  },
  {
    title: "White crew-Neck T-Shirt",
    image: "/images/products/list4.png",
    price: "$29.00"
  }
];

export type Product = (typeof products)[number];

export default function Page() {
  return (
    <section className="py-10 lg:py-20">
      <div className="mx-auto max-w-7xl px-4">
        <header className="mx-auto mb-6 max-w-2xl space-y-2 text-center lg:mb-10">
          <h2 className="font-heading text-3xl sm:text-4xl">New Season Products</h2>
          <p className="text-muted-foreground text-balance lg:text-lg">
            Discover the new and trending products added to the collection.
          </p>
        </header>

        <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-6">
          {products.map((product, i) => (
            <Product key={i} product={product} />
          ))}
        </div>
      </div>
    </section>
  );
}

const Product = ({ product }: { product: Product }) => (
  <Link href="#" className="group">
    <figure className="relative aspect-square w-full overflow-hidden rounded-lg object-cover">
      <Image
        fill
        className="object-cover transition-transform duration-300 group-hover:scale-105 group-hover:rotate-2"
        src={product.image}
        alt={product.title}
      />
    </figure>
    <div className="mt-3 space-y-0.5">
      <p className="font-medium">{product.title}</p>
      <p className="text-muted-foreground">{product.price}</p>
    </div>
  </Link>
);

Installation

npx shadcn@latest add @bundui/product-list-01

Usage

import { ProductList01 } from "@/components/product-list-01"
<ProductList01 />