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

0.0.1 • Public • Published

customizable-product-card

Package npm for product card component

Lucas Singh

Instalation:

npm install customizable-product-card

Code Example implementation

This is the folder structure we set up for you:

import {ProductCard, ProductImage, ProductTitle, ProductButtons} from 'customizable-product-card';

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

/customizable-product-card/

    Package Sidebar

    Install

    npm i customizable-product-card

    Weekly Downloads

    3

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    158 kB

    Total Files

    29

    Last publish

    Collaborators

    • lucas84