0.1.0 • Published 1 year ago

gamos-custom v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

TSDX product card react course example

product card HOC component

import ProductCard from "gamos-custom"
                <ProductCard
                    product={products[0]}
                    className="bg-dark text-white hover-shadow"
                    onChange={onProductCountChange}
                    value={shoppingCart[products[0].id]?.count || 0}
                    initialValue={{
                        count: 4,
                        maxCount: 10
                    }}
                >
                    <ProductCard.Image />
                    <ProductCard.Title />
                    <ProductCard.Buttons increment={1} />
                </ProductCard>