All components

Product List 01

Product List 01 is a React and Tailwind CSS data component from Bund UI, licensed MIT. Copy it and paste it into your project.

Bund UI MIT data

What it is

Product List 01 is a React and Tailwind CSS data component from Bund UI, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

No packages beyond the project baseline

Licence

This component comes from Bund UI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Product List 01

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>
);

Similar components