1.0.0-rc • Published 1 year ago

bfb-product-card v1.0.0-rc

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

BFB-Product-Card

Este es un paquete de pruebas de despliegue en NPM

Breogán Fernández

Ejemplo

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'bfb-product-card'
<ProductCard
    key={product.id}
    product={product}
    initialValues={{
        count: 4,
        maxCount: 10,
    }}
>
    {
        ({ count, isMaxCountReached, reset, increaseBy }) => (
            <>
                <ProductImage />
                <ProductTitle />
                <ProductButtons />
                {/* <button onClick={reset}>Reset</button>
                <button onClick={() => increaseBy(-2)}>-2</button>
                <span>{count}</span>
                {(!isMaxCountReached && <button onClick={() => increaseBy(2)}>+2</button>)} */}
            </>
        )
    }

</ProductCard>
1.0.0-rc

1 year ago

0.0.1

1 year ago