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

0.0.2 • Public • Published

EGMZ-Product-Card

This is a package of tests in NPM

Eric Gomez

Example

import {ProductCard, ProductImage, ProductTitle, ProductButtons} from 'egmz-product-card';
const product = {
  id: '1',
  title: 'Product 1',
  //   image: 'https://via.placeholder.com/150',
};

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

Readme

Keywords

Package Sidebar

Install

npm i egmz-product-card

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

155 kB

Total Files

40

Last publish

Collaborators

  • ericgomez