# give/4.18.0/src/Campaigns/Blocks/CampaignStats/block.json

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 73 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Campaigns/Blocks/CampaignStats/block.json
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Campaigns/Blocks/CampaignStats/block.json
- Modified: 2025-03-31T19:17:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Campaigns/Blocks/CampaignStats/block.json#L10-L20`.

```json
{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "givewp/campaign-stats-block",
    "version": "1.0.0",
    "title": "Campaign Statistics",
    "category": "give",
    "description": "Displays the campaign’s statistics.",
    "attributes": {
        "campaignId": {
            "type": "integer"
        },
        "statistic": {
            "type": "string",
            "enum": [
                "top-donation",
                "average-donation"
            ],
            "default": "top-donation"
        }
    },
    "supports": {
        "align": [
            "wide",
            "full"
        ],
        "anchor": true,
        "className": true,
        "splitting": true,
        "__experimentalBorder": {
            "color": true,
            "radius": true,
            "style": true,
            "width": true
        },
        "color": {
            "gradients": true,
            "link": true,
            "__experimentalDefaultControls": {
                "background": true,
                "text": true
            }
        },
        "spacing": {
            "margin": true,
            "padding": true,
            "__experimentalDefaultControls": {
                "margin": false,
                "padding": false
            }
        },
        "typography": {
            "fontSize": true,
            "lineHeight": true,
            "__experimentalFontFamily": true,
            "__experimentalFontStyle": true,
            "__experimentalFontWeight": true,
            "__experimentalLetterSpacing": true,
            "__experimentalTextTransform": true,
            "__experimentalTextDecoration": true,
            "__experimentalWritingMode": true,
            "__experimentalDefaultControls": {
                "fontSize": true
            }
        }
    },
    "example": {},
    "textdomain": "give",
    "render": "file:./render.php",
    "viewScript": "file:../../../../build/campaignStatsBlockApp.js",
    "style": "file:../../../../build/campaignStatsBlockApp.css"
}

```
