Elvis1327 / elv-product-card

this is a npm React package to practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0-elv-product-card

This is just a package for test

Elvis Garcia

Examples

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

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

About

this is a npm React package to practice

License:MIT License


Languages

Language:TypeScript 79.3%Language:CSS 14.0%Language:HTML 3.6%Language:JavaScript 3.1%