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

0.0.2 • Public • Published

Example

import {
  ProductButtons,
  ProductCard,
  ProductImage,
  ProductTitle,
} from './components';

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

      <button onClick={reset}>reset</button>
    </>
  )}
</ProductCard>;

Readme

Keywords

Package Sidebar

Install

npm i hector-product-card

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

144 kB

Total Files

29

Last publish

Collaborators

  • macako