Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
plugins
/
flexa-block
/
build
/
blocks
/
notice
📤 Upload
📝 New File
📁 New Folder
Close
Editing: block.json
{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "flexa/notice", "version": "1.0.0", "title": "Notice", "category": "flexa", "description": "Highlight an announcement, tip or warning — pick an info, success, warning, danger or neutral style, show an icon beside or above the text, add a title and message, align it, and let visitors dismiss it (optionally remembering the dismissal), with per-element typography and light/dark colours.", "keywords": [ "flexa", "notice", "alert", "callout", "message", "banner" ], "textdomain": "flexa-block", "example": { "attributes": { "isExamplePreview": true }, "viewportWidth": 500 }, "attributes": { "isExamplePreview": { "type": "boolean", "default": false }, "blockId": { "type": "string" }, "htmlTag": { "type": "string", "default": "div" }, "noticeType": { "type": "string", "default": "info", "enum": [ "info", "success", "warning", "danger", "default" ] }, "accentColor": { "type": "object", "default": { "light": "", "dark": "" } }, "dismissible": { "type": "boolean", "default": false }, "rememberDismiss": { "type": "boolean", "default": false }, "showIcon": { "type": "boolean", "default": true }, "icon": { "type": "object", "default": { "source": "none", "name": "", "markup": "", "url": "", "id": null } }, "iconPosition": { "type": "string", "default": "left", "enum": [ "left", "top" ] }, "iconSize": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "iconColor": { "type": "object", "default": { "light": "", "dark": "" } }, "showTitle": { "type": "boolean", "default": true }, "title": { "type": "string", "default": "Heads up!" }, "titleTag": { "type": "string", "default": "strong" }, "titleTypography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "titleColor": { "type": "object", "default": { "light": "", "dark": "" } }, "content": { "type": "string", "default": "This is a notice. Replace this with your own message." }, "contentTypography": { "type": "object", "default": { "desktop": {}, "tablet": {}, "mobile": {} } }, "contentColor": { "type": "object", "default": { "light": "", "dark": "" } }, "alignment": { "type": "object", "default": { "desktop": "", "tablet": "", "mobile": "" } }, "spacing": { "type": "object", "default": { "desktop": { "padding": { "top": "12", "right": "16", "bottom": "12", "left": "16", "unit": "px" } }, "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": {}, "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" }
Save
Cancel