1.0.1 • Published 1 year ago
er-product-card v1.0.1
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>