1.0.0-rc • Published 2 years ago

oz-product-card v1.0.0-rc

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

Oz-product-card

This is a sample package to deploy to npm.

How to use?

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

Oscar Monroy