0.0.2 • Published 1 year ago

dps-product-card v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

David Pino

Ejemplo

import ProductCard from "../components";
import { products } from "../data/products";
const product = products[0];

export const ShoppingPage = () => {
  return (
    <div>
      <div>
        <ProductCard
          product={product}
          initialValues={{
            count: 5,
            maxCount: 10,
          }}
        >
          {() => (
            <>
              <ProductCard.Image />
              <ProductCard.Title />
              <ProductCard.Buttons />
            </>
          )}
        </ProductCard>
      </div>
    </div>
  );
};