1.0.1-rc • Published 1 year ago

bebita-sideral-product-card v1.0.1-rc

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

DP-Product-Card

Este es un paquete de pruebas de despliegue en NPM

Diego Pacori

Ejemplo

import {
    ProductCard,
    ProductImage,
    ProductButtons,
    ProductTitle,
} from 'dp-product-card';
<ProductCard
    product={product}
    initialValues={{
        count: 4,
        maxCount: 10
    }}
>
    {
        ({reset, count, increaseBy, isMaxCountReached}) => (
            <>
                <ProductImage style={{ boxShadow: '10px 10px 10px rgba(0,0,0, 0.2)' }}/>
                <ProductTitle/>
                <ProductButtons
                    add={{label: '+', value: 1}} 
                    minus={{label: '-', value: -1}} 
                    // className='custom-buttons'
                />
            </>
        )
    }

</ProductCard>
1.0.1-rc

1 year ago

1.0.0-rc

1 year ago

0.0.1

1 year ago