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

0.0.2 • Public • Published

REACT PRODUCT CARD COMPONENT by @xansiety

Este es un componente de React que muestra un producto con su imagen, nombre, precio y un botón para agregar al carrito.

Componente de React de prueba de despliegue en NPM

Ejemplo

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'react-product-card-component';

Usage:

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

Package Sidebar

Install

npm i react-product-card-xansiety

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

154 kB

Total Files

40

Last publish

Collaborators

  • xansiety