Appearance
EarningsCard
File:
@views/Widgets/EarningsCard
EarningsCard
is a highly customizable widget that display earning details.
Props
For EarningsCard
widget, the following props are available:
Prop | Type | Default | Note |
---|---|---|---|
title | String | - | Card title. |
chartData | Object | - | Adds chart data, You can pass chart data received from your API response to this component. |
chartLoaded | Boolean | - | Checks if the chart is loaded, You can control this state via api response. |
earningsMaxHeight | [String,Number] | - | Defines max height of the card. |
className | String | - | Overrides or extends the component's styles. |
earnings | Array | - | 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.scss
page.