JSPM

ms-product-card

1.0.1-rc
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q10084F
  • License MIT

Package Exports

  • ms-product-card
  • ms-product-card/dist/index.js
  • ms-product-card/dist/ms-product-card.esm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ms-product-card) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JS-Product-Card

Este es un paquete de pruebas de despliegue en NPM

Jesús Sierra

Ejemplo

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