0.0.1 • Published 8 months ago

oh-product-card v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago
import { ProductButtons, ProductCard, ProductTitle, ProductImage } from "oh-product-card";
<ProductCard
                    key={ product.id }
                    product={ product }
                    initialValues={{
                        count: 4,
                        maxCount: 10
                    }}
                >
                    {
                        ({ reset, isMaxCountReached, maxCount, increaseBy, count }) => (
                            <>
                                <ProductImage />
                                <ProductTitle />
                                <ProductButtons />
                            </>
                        )
                    }
                </ProductCard>