1.0.3 • Published 1 year ago

axvv-product-card v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

axvv-product-card

This is a simple product card component

Example

import  {ProductCard, ProductImage, ProductTitle, ProductButtons }  from  'axvv-product-card';
<ProductCard
  product={product}
  initialValues={{
    quantity: 4,
    // maxQuantity: 10
  }}
>
  {
    ({reset, count, maxCount, isMaxCountReached, increaseBy})=>(
      <>
        <ProductImage/>
        <ProductTitle />
        <ProductButtons />
      </>
    )
  }
</ProductCard>