Skip to content

EarningsCard

File: @views/Widgets/WidgetsEarningsCard

WidgetsEarningsCard is a highly customizable widget that displays earning details.

Props

For WidgetsEarningsCard 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.
earningsMaxHeightString-Defines max height of the card.
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