{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "suredonation/checkbox", "title": "Checkbox", "description": "Adds a single checkbox for consent or opt-in, such as a newsletter sign-up or a Gift Aid declaration.", "category": "suredonation", "keywords": [ "checkbox", "check", "agree", "terms", "consent", "opt-in", "optin", "subscribe" ], "textdomain": "suredonation", "supports": { "reusable": false, "html": false }, "example": { "attributes": { "preview": true } }, "attributes": { "preview": { "type": "boolean", "default": false }, "block_id": { "type": "string" }, "checked": { "type": "boolean", "default": false }, "required": { "type": "boolean", "default": false }, "fieldWidth": { "type": "number", "default": 100 }, "label": { "type": "string", "default": "I agree to the terms and conditions" }, "help": { "type": "string", "default": "" }, "errorMsg": { "type": "string", "default": "" }, "formId": { "type": "number", "default": 0 }, "slug": { "type": "string", "default": "" }, "className": { "type": "string", "default": "" }, "customClasses": { "type": "string", "default": "" } } }