Skip to content

Vilo0/vilo-product-card

Repository files navigation

Vilo-Product-Card

Este es un paquete de pruebas de despliegue en NPM

Edgard Vilo

Ejemplo

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