Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
button
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/button", "version": "1.0.0", "title": "Button", "category": "flexa", "description": "Call-to-action link styled as a button — inherits your theme's button look, with optional variant, size, icon, colors, hover states and per-device typography.", "keywords": [ "flexa", "button", "cta", "link", "action" ], "textdomain": "flexa-block", "example": { "attributes": { "isExamplePreview": true }, "viewportWidth": 400 }, "attributes": { "isExamplePreview": { "type": "boolean", "default": false }, "blockId": { "type": "string" }, "text": { "type": "string", "default": "" }, "url": { "type": "string", "default": "" }, "linkTarget": { "type": "string", "default": "" }, "rel": { "type": "string", "default": "" }, "variant": { "type": "string", "default": "fill", "enum": [ "fill", "outline", "ghost" ] }, "sizePreset": { "type": "string", "default": "md", "enum": [ "sm", "md", "lg" ] }, "align": { "type": "string", "default": "left", "enum": [ "left", "center", "right" ] }, "fullWidth": { "type": "boolean", "default": false }, "icon": { "type": "object", "default": { "source": "none", "name": "", "markup": "", "url": "", "id": null, "position": "after" } }, "textColor": { "type": "object", "default": { "light": "", "dark": "" } }, "hover": { "type": "object", "default": { "text": { "light": "", "dark": "" }, "background": { "light": "", "dark": "" }, "border": { "light": "", "dark": "" }, "transform": "none" } }, "typography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "spacing": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "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 } }, "background": { "type": "object", "default": { "type": "none", "color": { "light": "", "dark": "" }, "gradient": { "light": "", "dark": "" } } }, "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", "render": "file:./render.php" }
Save
Cancel