Appearance
CampaignCard
File:
@views/Widgets/CampaignCard
CampaignCard
is a catchy, easy-to-set-up widget that displays information and tracks social campaigns.
Props
For CampaignCard
widget, the following props are available:
Prop | Type | Default | Note |
---|---|---|---|
logo | String | - | Sets img src. |
title | String | - | Campaign's title. |
details | Object | - | Displays details. |
stat | [String, Number] | - | Displays stat in front of the logo. |
className | String | - | Overrides or extends the component's styles. |
Details
details
prop is an object that contains two properties 👇
- Object Key (any)
- title
- change
The first property can be anything you want as a key and value 👇
js
const details = {
Followers: "458",
statistic: {
title: "Less Likes",
change: -25.58, // This value will be displayed as a percentage
},
};