Skip to content

CryptoTradeCard

File: @views/Widgets/CryptoTradeCard

CryptoTradeCard is a highly customizable widget that displays the cryptocurrencies for trading.

Props

For CryptoTradeCard widget, the following props are available:

PropTypeDefaultNote
titleString-Card title.
tabsArray-Specifies tab items, each item in the array is an object with title:String and value:any properties.
price[String, Number]-Price input state.
amount[String, Number]-Amount input state.
optionsArray-Display select options, each option is an object which title:String, slug:String, icon:Object properties.
selectedCrypto[Object, String, Number]-Selected crypto state.
selectItemValueString-The itemValue prop specifies which property of the select options should be used as a key to return as a selected value.
activeTradeTab[String, Number]-Controls selected tab.
tabColorString-Specifies tab items background color.
classNameString-Overrides or extends the component's styles.

Callback Functions

The CryptoTradeCard widget contains following callback functions.

FunctionDescription
onTabChangeControls the active tab.
onPriceChangeControls price input state.
onAmountChangeControls amount input state.
onSelectChangeControls the select.
onSubmitSubmit event.

COPYRIGHT