0.0.2 • Published 3 years ago

tomcat-product-card v0.0.2

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

Product-Card

This is a test package for deploy in NPM.

Tomas Catena

Example

import {ProductCard, ProductImage, ProductTitle, ProductButtons} from 'tomcat-product-card'
<ProductCard
    key={product.id}
    product={product}
    initialValues={{
        count: 6,
        maxCount: 10,
    }}
>
    {({ reset, count, isMaxCountReached, maxCount, increaseBy }) => (
        <>
            <ProductImage />
            <ProductTitle />
            <ProductButtons />
        </>
    )}
</ProductCard>