Product Card

A visually appealing and responsive product card component for showcasing products effectively.

Installation

Follow these steps to install and set up the Product Card component in your project.

1

Dependencies

Ensure you have Next.js and Tailwind CSS installed to use this component seamlessly.

npm install tailwindcss @tailwindcss/postcss postcss
2

Component Code

Here is the complete implementation of the Product Card component. Copy and paste it into your project.

import { ProductCard } from "/path-to-your-components-folder"
3

Add the component to your page

Finally, add the Product Card component to your page or application. Customize the props as needed.

export default function Page() {
  return (
    <div>
      <ProductCard 
        slug='/components/productscard'
        title="EMBERTON III"
        description="Product Description"
        image="/placeholders/product.png"
        price="$Price"
      />
    </div>
  )
}

Props

NameTypeDefaultDescription
titlestring-The title of the product.
descriptionstring-A brief description of the product.
imagestring-The URL of the product image.
pricestring-The price of the product.
slugstring-The URL path for the product link.

Design Credits

Sourav

Design & Development