Skip to content

EarningsCard

File: @views/Widgets/EarningsCard

EarningsCard is a highly customizable widget that display earning details.

Props

For EarningsCard widget, the following props are available:

PropTypeDefaultNote
titleString-Card title.
chartDataObject-Adds chart data, You can pass chart data received from your API response to this component.
chartLoadedBoolean-Checks if the chart is loaded, You can control this state via api response.
earningsMaxHeight[String,Number]-Defines max height of the card.
classNameString-Overrides or extends the component's styles.
earningsArray-Earning details , each detail is an object with title:String , platform:String, change:Number, color:String and icon:Object properties.

Color

Utility colors are supported (e.g. primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.

COPYRIGHT