1.0.0-rc • Published 2 years ago
if-product-card v1.0.0-rc
Example
import {ProductCard} from 'if-product-card'
<ProductCard
product={product}
className="bg-dark text-white"
initialValues={{
count: 4,
maxCount: 10
}}>
{
({reset, isMaxCountReached, maxCount, increaseBy}) => (
<>
<ProductCard.Image/>
<ProductCard.Title />
<ProductCard.Buttons/>
</>
)
}
</ProductCard>