er-product-card
v1.0.1
Published
This is a product card component. It is built using React and Typescript.
Readme
ER Product Card
This is a product card component. It is built using React and Typescript.
Example
import { ProductCard } from '@er-product-card';<ProductCard
product={product}
initialValues={{
quantity: 4,
maxQuantity: 10,
}}
>
{({ counter, isMaxQuantityReached, maxQuantity, increaseBy, reset }) => (
<>
<ProductCard.Image />
<ProductCard.Title />
<ProductCard.Buttons />
</>
)}
</ProductCard>