{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "firebox/button",
  "version": "1.0.0",
  "title": "Button",
  "description": "An advanced Button block.",
  "category": "firebox",
  "parent": [
    "firebox/buttons"
  ],
  "keywords": [
    "button",
    "call to action"
  ],
  "supports": {
    "className": true,
    "anchor": true
  },
  "attributes": {
    "uniqueId": {
      "type": "string",
      "default": ""
    },
    "icon": {
      "type": "object",
      "default": {
        "value": "",
        "label": ""
      }
    },
    "iconPosition": {
      "type": "string",
      "default": "after"
    },
    "iconHTML": {
      "type": "string",
      "default": ""
    },
    "url": {
      "type": "string",
      "default": ""
    },
    "text": {
      "type": "string",
      "default": ""
    },
    "target": {
      "type": "string",
      "default": ""
    },
    "rel": {
      "type": "string",
      "default": ""
    },
    "textColor": {
      "type": "string",
      "default": "#fff"
    },
    "backgroundColor": {
      "type": "string",
      "default": "#32373c"
    },
    "textColorHover": {
      "type": "string"
    },
    "backgroundColorHover": {
      "type": "string"
    },
    "fontSize": {
      "type": "object",
      "default": {
        "desktop": "",
        "tablet": "",
        "mobile": ""
      }
    },
    "lineHeight": {
      "type": "object",
      "default": {
        "desktop": 1,
        "tablet": "",
        "mobile": ""
      }
    },
    "letterSpacing": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": "",
        "mobile": ""
      }
    },
    "blockBorderColor": {
      "type": "string",
      "default": ""
    },
    "blockBorderWidth": {
      "type": "number",
      "default": 0
    },
    "blockBorderStyle": {
      "type": "string",
      "default": "none"
    },
    "blockBorderRadius": {
      "type": "object",
      "default": {
        "desktop": {
          "top_left": 30,
          "top_right": 30,
          "bottom_right": 30,
          "bottom_left": 30
        },
        "tablet": {
          "top_left": "",
          "top_right": "",
          "bottom_right": "",
          "bottom_left": ""
        },
        "mobile": {
          "top_left": "",
          "top_right": "",
          "bottom_right": "",
          "bottom_left": ""
        },
        "linked": true
      }
    },
    "visibility": {
      "type": "object",
      "default": {
        "desktop": false,
        "tablet": false,
        "mobile": false
      }
    },
    "fixedWidth": {
      "type": "object",
      "default": {
        "desktop": "",
        "tablet": "",
        "mobile": ""
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "desktop": {
          "type": "none",
          "top": 0,
          "left": 0,
          "color": "",
          "spread": 7,
          "width": 0
        },
        "tablet": {
          "type": "none",
          "top": 0,
          "left": 0,
          "color": "",
          "spread": 7,
          "width": 0
        },
        "mobile": {
          "type": "none",
          "top": 0,
          "left": 0,
          "color": "",
          "spread": 7,
          "width": 0
        }
      }
    },
    "padding": {
      "type": "object",
      "default": {
        "desktop": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "tablet": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "mobile": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "linked": true
      }
    },
    "margin": {
      "type": "object",
      "default": {
        "desktop": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "tablet": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "mobile": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": ""
        },
        "linked": true
      }
    },
    "blockFontType": {
      "type": "string",
      "default": "default"
    },
    "blockFontFamily": {
      "type": "object",
      "default": "default"
    },
    "blockFontWeight": {
      "type": "string",
      "default": 400
    },
    "blockFontStyle": {
      "type": "string",
      "default": "normal"
    }
  },
  "editorScript": "file:./index.js",
  "editorStyle": "fb-block-button"
}