yha-product-card
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc • Public • Published

TSDX React User Guide

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from '../components'; 
<ProductCard 
    key={ product.id }
    product={ product }
    className="bg-dark text-white"
    initialValues={{
        count: 6,
        // maxCount: 10,
    }}
>
    {
        ({ reset, count, isMaxCountReached, maxCount, increaseBy  }) => (
            <>
                <ProductImage  />
                <ProductTitle  />
                <ProductButtons  />
            </>
        )
    }
</ProductCard>

Package Sidebar

Install

npm i yha-product-card

Weekly Downloads

3

Version

1.0.0-rc

License

MIT

Unpacked Size

154 kB

Total Files

40

Last publish

Collaborators

  • yan_hernandez