1.0.3 • Published 6 years ago
@egolord/product v1.0.3
Store Page Product
Todo
- Separate into container and presentation component
ProductPresentation
Props | type | Default | Description |
---|---|---|---|
price | string | undefined | String appears in price box |
alt | string | 'Product image' | Alt text for product image |
imageURL | string | undefined | Img src (can be provided at any time for lazy loading) |
aspect-ratio | Array | 3, 2 | x, y :: determines padding-bottom % of containing div by y/x * 100 |
ProductContainer
Props | type | Default | Description |
---|---|---|---|
product | Object | undefined | An egolord/stripe product object (images and sku attached object) |
aspect-ratio | Array | 3, 2 | x, y :: determines padding-bottom % of containing div by y/x * 100 |