{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "backtotop/back-to-top-block",
  "version": "1.0.3",
  "title": "Back To Top Block",
  "category": "widgets",
  "icon": "arrow-up-alt2",
  "description": "Adds a customizable Back to Top button that helps visitors return to the top of the page.",
  "keywords": [
    "scroll",
    "navigation",
    "button",
    "top"
  ],
  "example": {},
  "supports": {
    "html": false,
    "anchor": true,
    "className": true,
    "color": {
      "text": true,
      "background": true
    },
    "spacing": {
      "margin": true,
      "padding": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "textAlign": true,
      "__experimentalFontFamily": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalWritingMode": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "textdomain": "back-to-top-block",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "attributes": {
    "showIcon": {
      "type": "boolean",
      "default": true
    },
    "showText": {
      "type": "boolean",
      "default": true
    },
    "buttonText": {
      "type": "string",
      "default": "Back to Top",
      "maxLength": 50
    },
    "iconUrl": {
      "type": "string",
      "default": "",
      "pattern": "^(https?:\\/\\/)?[\\w\\-\\.]+\\.[a-zA-Z]{2,}(\\/\\S*)?$"
    }
  }
}