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>
    </>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0-rc
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0-rc
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i dhm-product-card

Weekly Downloads

3

Version

1.0.0-rc

License

MIT

Unpacked Size

148 kB

Total Files

29

Last publish

Collaborators

  • dmeritano