1.0.0-rc • Published 5 months ago
fedrick-fp-product-card v1.0.0-rc
TSDX React User Guide
import {
ProductCard,
ProductImage,
ProductTitle,
ProductButtons
} from 'do-product-card'
<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ reset, increaseBy, count, isMaxCountReached }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>