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

1.0.0-rc • Public • Published

JONL-Product-Card

This is a POC for deploying a React component to NPM

Oscar Lagatta

Sample

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'jonl-product-card'
<ProductCard
        product={product}
        initialValues={{
          count: 4,
          maxCount: 10,
        }}
      >
        {({ reset, isMaxCountReached, count, maxCount, increaseBy }) => (
          <>
            <ProductImage />
            <ProductTitle />
            <ProductButtons />
          </>
        )}
</ProductCard>

Package Sidebar

Install

npm i jonl-product-card

Weekly Downloads

2

Version

1.0.0-rc

License

MIT

Unpacked Size

156 kB

Total Files

41

Last publish

Collaborators

  • oscarlagatta