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

0.0.2 • Public • Published

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>
  );
};

Readme

Keywords

Package Sidebar

Install

npm i dps-product-card

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

150 kB

Total Files

31

Last publish

Collaborators

  • david151012