{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "gatherpress/dropdown", "title": "Dropdown", "category": "gatherpress", "icon": "menu", "description": "A customizable dropdown menu block with advanced styling and interaction options.", "attributes": { "actAsSelect": { "type": "boolean", "default": false }, "alignment": { "type": "string", "default": "left", "enum": [ "left", "center", "right", "justify", "stretch" ] }, "dropdownBorderColor": { "type": "string", "default": "#000000" }, "dropdownBorderRadius": { "type": "number", "default": 8 }, "dropdownBorderThickness": { "type": "number", "default": 1 }, "dropdownId": { "type": "string", "default": "" }, "dropdownWidth": { "type": "string", "default": 240 }, "dropdownZIndex": { "type": "number", "default": 1001 }, "itemBgColor": { "type": "string", "default": "#FFFFFF" }, "itemDividerColor": { "type": "string", "default": "#000000" }, "itemDividerThickness": { "type": "number", "default": 1 }, "itemHoverBgColor": { "type": "string", "default": "#EEEEEE" }, "itemHoverTextColor": { "type": "string", "default": "#000000" }, "itemPadding": { "type": "object", "default": { "top": 8, "right": 8, "bottom": 8, "left": 8 } }, "itemTextColor": { "type": "string", "default": "#000000" }, "label": { "type": "string", "default": "Dropdown" }, "labelTextColor": { "type": "string", "default": "#000000" }, "openOn": { "type": "string", "default": "click", "enum": [ "click", "hover" ] }, "selectedIndex": { "type": "number", "default": 0 } }, "supports": { "html": false, "interactivity": true }, "textdomain": "gatherpress", "editorScript": "file:./index.js", "style": "file:./style-index.css", "viewScriptModule": "file:./view.js" }