devferx-product-card
v1.0.0
Published
Product Card Component
Readme
Devferx-Product-Cart
Product Card Component
Install
NPM
npm install devferx-product-cardYarn
yarn add devferx-product-cardExample
import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'devferx-product-card'<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ count, isMaxCountReached, maxCount, reset, increaseBy }) => (
<>
<ProductCard.Image />
<ProductCard.Title />
<ProductCard.Buttons />
</>
)}
</ProductCard>Demo

- https://devferx-product-card-demo.netlify.app/
