0.0.2 • Published 3 years ago
test-lmac-card v0.0.2
TEST-LMAC-CARD
This package is a test for a card component with count cant controls.
LMAC
Example
import {
ProductCard,
ProductImage,
ProductTitle,
ProductButtons,
} from 'test-lmac-card';
<ProductCard
product={product}
key={product.id}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ reset, count, increaseBy, isMaxCountReached }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>