chr-product-card
v0.0.2
Published
> [!Warning] > This is package for testing purposes. Don't use it in production mode.
Maintainers
Readme
CR-PRODUCT-CARD
[!Warning] This is package for testing purposes. Don't use it in production mode.
Example
import { ProductCard } from 'cr-product-card'<ProductCard initialValues={{ product, count: 0, maxCount: 5 }}>
{({ count, maxCount, product, incrementBy }) => (
<>
<ProductCard.Image imageUrl={product.imageUrl} />
<ProductCard.Title title={product.name} />
<ProductCard.Buttons
count={count}
maxCount={maxCount}
incrementBy={incrementBy}
/>
</>
)}
</ProductCard>
