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

1.0.0-rc • Public • Published

DHM-Product-Card

This is a test package for deployment in NPM - REACT JS

David Meritano

Usage example

import {ProductCard, ProductImage, ProductTitle, ProductButtons} from "dhm-product-card"
const product = {
  id:"1",
  title:"Coffee Mug - Card",
  //img: "./images/coffee-mug.png"
}
    <>
      <ProductCard
        product={product}
        initialValues={{ 
          count: 5, 
          //maxCount: 10 
        }}
      >
        {({ reset, isMaxCountReached, maxCount, increaseBy, count }) => (
          <>
            <ProductImage />
            <ProductTitle />
            <ProductButtons />
          </>
        )}
      </ProductCard>
    </>

Package Sidebar

Install

npm i dhm-product-card

Weekly Downloads

1

Version

1.0.0-rc

License

MIT

Unpacked Size

148 kB

Total Files

29

Last publish

Collaborators

  • dmeritano