1.0.0 • Published 2 years ago

devferx-product-card v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Devferx-Product-Cart

Product Card Component

Install

NPM

npm install devferx-product-card

Yarn

yarn add devferx-product-card

Example

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'devferx-product-card'
<ProductCard
  product={product}
  initialValues={{
    count: 4,
    maxCount: 10,
  }}
>
  {({ count, isMaxCountReached, maxCount, reset, increaseBy }) => (
    <>
      <ProductCard.Image />
      <ProductCard.Title />
      <ProductCard.Buttons />
    </>
  )}
</ProductCard>

Demo

Coffee card