product
v1.0.2arrow_drop_downv1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
10
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
5 KB
Product component that depend on Button, Title and Price components
1 contributor
Like
Install product as a package?
Copied
npm i @bit/joshk.react-components-library-template.product
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
Product ()
Product component that depend on Button, Title and Price components
Properties
Name | Type | Default value | Description |
---|---|---|---|
title | string | 'product title' | product title |
description | string | 'product description' | product description |
price | string | '$100' | product pricing |
image | string | 'https://static.nike.com/a/images/f_auto/q_auto/t_PDP_864_v1/i1-9944e829-002c-4a6b-93ed-cc8801c7eb0c/air-vapormax-360-mens-shoe-b09bdB.jpg' | product image url |
onClick | function | On click event function that will show a button under the image | |
className | string | optional class |
Test Summary
Product Component Testing Renders Product with Button component | Pass |