0.0.1 • Published 2 years ago

dab-product-card v0.0.1

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

dab-product-card

This is a test package to deploy to NPM

Daniel Ángel Barreto

Example

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