Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
heading
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/heading", "version": "1.0.0", "title": "Heading", "category": "flexa", "description": "Rich heading with an optional subheading and separator, per-device typography and alignment, light/dark colours, gradient text and text effects.", "keywords": [ "flexa", "heading", "title", "headline", "subheading" ], "textdomain": "flexa-block", "example": { "attributes": { "isExamplePreview": true }, "viewportWidth": 500 }, "attributes": { "isExamplePreview": { "type": "boolean", "default": false }, "blockId": { "type": "string" }, "content": { "type": "string", "default": "Heading" }, "tag": { "type": "string", "default": "h2" }, "url": { "type": "string", "default": "" }, "linkTarget": { "type": "string", "default": "" }, "rel": { "type": "string", "default": "" }, "alignment": { "type": "object", "default": { "desktop": "left", "tablet": "", "mobile": "" } }, "gap": { "type": "object", "default": { "value": "", "unit": "px" } }, "typography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "textType": { "type": "string", "default": "color" }, "textColor": { "type": "object", "default": { "light": "", "dark": "" } }, "textGradient": { "type": "object", "default": { "light": "", "dark": "" } }, "textColorHover": { "type": "object", "default": { "light": "", "dark": "" } }, "textStroke": { "type": "object", "default": { "enabled": false, "width": { "value": "", "unit": "px" }, "color": { "light": "", "dark": "" } } }, "textShadow": { "type": "object", "default": { "enabled": false, "horizontal": "0", "vertical": "2", "blur": "4", "color": { "light": "", "dark": "" } } }, "blendMode": { "type": "string", "default": "" }, "showSubheading": { "type": "boolean", "default": false }, "subheadingContent": { "type": "string", "default": "" }, "subheadingPosition": { "type": "string", "default": "bottom" }, "subheadingTag": { "type": "string", "default": "span" }, "subheadingTypography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "subheadingColor": { "type": "object", "default": { "light": "", "dark": "" } }, "showSeparator": { "type": "boolean", "default": false }, "separatorPosition": { "type": "string", "default": "bottom" }, "separatorWidth": { "type": "object", "default": { "value": "80", "unit": "px" } }, "separatorWeight": { "type": "object", "default": { "value": "2", "unit": "px" } }, "separatorStyle": { "type": "string", "default": "solid" }, "separatorColor": { "type": "object", "default": { "light": "", "dark": "" } }, "separatorSpacing": { "type": "object", "default": { "value": "", "unit": "px" } }, "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 } }, "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" }
Save
Cancel