 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/tabs",
  "version": "1.0.0",
  "title": "Tabs",
  "category": "flexa",
  "description": "Organise content into a horizontal tab bar with optional icons, an underline, pill or boxed tab style, per-tab and content typography, light/dark colours, and a bar that collapses to an accordion on mobile.",
  "keywords": [
    "flexa",
    "tabs",
    "tabbed",
    "accordion",
    "panels"
  ],
  "textdomain": "flexa-block",
  "example": {
    "attributes": {
      "isExamplePreview": true
    },
    "viewportWidth": 500
  },
  "attributes": {
    "isExamplePreview": {
      "type": "boolean",
      "default": false
    },
    "blockId": {
      "type": "string"
    },
    "htmlTag": {
      "type": "string",
      "default": "div"
    },
    "tabs": {
      "type": "array",
      "default": [
        {
          "label": "Overview",
          "content": "Introduce the first topic here. Use plain paragraphs to describe what this tab covers."
        },
        {
          "label": "Features",
          "content": "List the highlights of your product or service on this tab."
        },
        {
          "label": "Pricing",
          "content": "Explain your plans and pricing so visitors can compare at a glance."
        }
      ]
    },
    "activeTab": {
      "type": "number",
      "default": 0
    },
    "tabStyle": {
      "type": "string",
      "default": "underline",
      "enum": [
        "underline",
        "pill",
        "boxed"
      ]
    },
    "tabAlign": {
      "type": "string",
      "default": "left",
      "enum": [
        "left",
        "center",
        "right",
        "justify"
      ]
    },
    "showIcon": {
      "type": "boolean",
      "default": true
    },
    "tabGap": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "maxWidth": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "tabPadding": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "contentPadding": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "iconSize": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "iconGap": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "tabTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "contentTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "tabColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "tabHoverColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "tabActiveColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "tabActiveIndicatorType": {
      "type": "string",
      "default": "color",
      "enum": [
        "color",
        "gradient"
      ]
    },
    "tabActiveIndicator": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "tabActiveIndicatorGradient": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "contentColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "contentBackgroundType": {
      "type": "string",
      "default": "color",
      "enum": [
        "color",
        "gradient"
      ]
    },
    "contentBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "contentBackgroundGradient": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "spacing": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "background": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "image": {
          "url": "",
          "id": null,
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover",
          "attachment": "scroll"
        },
        "lazyLoad": false
      }
    },
    "border": {
      "type": "object",
      "default": {
        "desktop": {
          "style": "",
          "width": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          },
          "color": {
            "light": "",
            "dark": ""
          },
          "radius": {
            "topLeft": "",
            "topRight": "",
            "bottomRight": "",
            "bottomLeft": "",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "4",
        "blur": "12",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.1)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "advancedLayout": {
      "type": "object",
      "default": {
        "desktop": {
          "zIndex": "",
          "overflow": "",
          "position": ""
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "responsiveVisibility": {
      "type": "object",
      "default": {
        "hideOnDesktop": false,
        "hideOnTablet": false,
        "hideOnMobile": false
      }
    },
    "animation": {
      "type": "object",
      "default": {
        "type": "none",
        "duration": "normal",
        "delay": ""
      }
    },
    "htmlAttributes": {
      "type": "object",
      "default": {
        "customAttributes": []
      }
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "align": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}