Skip to content

CampaignCard

File: @views/Widgets/WidgetsCampaignCard

WidgetsCampaignCard is a catchy, easy-to-set-up widget that displays information and tracks social campaigns.

Props

For WidgetsCampaignCard widget, the following props are available:

PropTypeDefaultNote
logoString-Sets img src.
titleString-Campaign's title.
detailsObject-Displays details.
stat[String, Number]-Displays stat in front of the logo.

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
    },
    //  ...

}

COPYRIGHT