1.0.0-rc • Published 2 years ago

yha-product-card v1.0.0-rc

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

TSDX React User Guide

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