blacksheep-product-card
v1.0.0-rc
Published
## Product card
Downloads
42
Maintainers
Readme
BlackSheep
Product card
Paquetes de pruebas de despliegue NPM
Juan Carlos Moreno Sanchez
Example
import {ProductCard, ProductImage, ProductTitle, ProductButtons} from 'blacksheep-product-card'
<ProductCard
key={product.id}
product={product}
initialValues={{ count: 4, maxCount: 10 }}
>
{
({ count, isMaxCountReached, increaseBy, reset }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)
}
</ProductCard>