0.1.1-rc • Published 2 years ago

wavp-pcard v0.1.1-rc

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Product Card

About:

paquete de pruebas

####IMPORT

import {} from 'wavp-pcard'

####USE

<ProductCard product={product}
             key={product.id}
             initialValues={{
                 count: 4,
                 maxCount: 10
             }}>
    {({reset, increment, count, isMaxCountReached}) => (<>
        <ProductImage/>
        <ProductTitle/>
        <ProductButtons/>

        <button onClick={reset}>Reset</button>
        <button onClick={() => increment(-2)}>- 2</button>
        {!isMaxCountReached && <button onClick={() => increment(2)}>+ 2</button>}
        <span className='text-white'> {count}</span>
    </>)}
</ProductCard>
0.1.1-rc

2 years ago

0.1.0

2 years ago