{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "airo-wp/icon",
  "version": "1.0.0",
  "title": "Icon",
  "category": "airo-wp",
  "description": "Display an inline SVG icon with customizable styling.",
  "keywords": [
    "icon",
    "svg",
    "symbol",
    "graphic"
  ],
  "textdomain": "airo-wp",
  "icon": "star-filled",
  "usesContext": [
    "airo-wp/hoverIconBackgroundColor"
  ],
  "selectors": {
    "root": ".wp-block-airo-wp-icon .airo-wp-icon__wrapper",
    "spacing": {
      "root": ".wp-block-airo-wp-icon .airo-wp-icon__wrapper",
      "margin": ".wp-block-airo-wp-icon"
    }
  },
  "supports": {
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "html": false,
    "inserter": true,
    "spacing": {
      "margin": true,
      "padding": true,
      "__experimentalDefaultControls": {
        "margin": true,
        "padding": true
      },
      "__experimentalSkipSerialization": [
        "padding"
      ]
    },
    "color": {
      "background": true,
      "text": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      },
      "__experimentalSkipSerialization": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "radius": true
      },
      "__experimentalSkipSerialization": true
    }
  },
  "attributes": {
    "icon": {
      "type": "string",
      "default": "star"
    },
    "justification": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "default": "center"
    },
    "iconStyle": {
      "type": "string",
      "enum": [
        "filled",
        "outlined"
      ]
    },
    "strokeWidth": {
      "type": "number",
      "default": 1.5
    },
    "iconSize": {
      "type": "number"
    },
    "rotation": {
      "type": "number",
      "default": 0
    },
    "linkUrl": {
      "type": "string",
      "default": ""
    },
    "linkTarget": {
      "type": "string",
      "default": "_self"
    },
    "linkRel": {
      "type": "string",
      "default": ""
    },
    "ariaLabel": {
      "type": "string",
      "default": ""
    },
    "isDecorative": {
      "type": "boolean",
      "default": false
    }
  },
  "example": {
    "attributes": {
      "icon": "star",
      "iconSize": 64
    }
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./index.css",
  "render": "file:./render.php"
}