1.0.0-rc • Published 2 years ago

cr-product-card v1.0.0-rc

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

CA-Product-Card

This is a NPM deployment package test

Camilo Romero

Example

import { ProductImage, ProductTitle, ProductButtons, ProductCard } from '../.';

<ProductCard
  key={product.id}
  product={product}
  className="bg-dark text-white"
  initialValues={{
    count: 6,
    maxCount: 10,
  }}
>
  {({ reset, increaseBy, count, maxCount, isMaxCountReached }) => (
    <>
      <ProductImage />
      <ProductTitle />
      <ProductButtons />
    </>
  )}
</ProductCard>;