{ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "b-blocks/divider", "title": "Divider", "category": "bBlocks", "description": "Add a customizable inline divider between paragraphs and sections. Choose a plain line, centered icon, or text label, with options for line style, color, thickness, width, alignment, and spacing.", "keywords": [ "divider", "separator", "hr", "line", "rule", "horizontal rule", "or", "section divider" ], "textdomain": "b-blocks", "attributes": { "type": { "type": "string", "default": "line" }, "layout": { "type": "object", "default": { "alignment": "center", "width": "100%" } }, "line": { "type": "object", "default": { "style": "solid", "color": "#cccccc", "width": "2px" } }, "icon": { "type": "object", "default": { "svg": "", "size": "16px", "color": "", "bg": { "type": "solid", "color": "" }, "padding": { "top": "8px", "right": "8px", "bottom": "8px", "left": "8px" }, "borderRadius": { "top": "50px", "right": "50px", "bottom": "50px", "left": "50px" } } }, "text": { "type": "object", "default": { "content": "OR", "color": "", "bg": { "type": "solid", "color": "" }, "typography": { "fontSize": { "desktop": "14px", "tablet": "", "mobile": "" }, "fontWeight": 600, "textTransform": "none" }, "padding": { "top": "4px", "right": "12px", "bottom": "4px", "left": "12px" } } }, "spacing": { "type": "object", "default": { "top": "24px", "right": "", "bottom": "24px", "left": "" } }, "advanced": { "type": "object", "default": { "dimension": { "padding": { "desktop": { "top": "", "right": "", "bottom": "", "left": "" }, "tablet": { "top": "", "right": "", "bottom": "", "left": "" }, "mobile": { "top": "", "right": "", "bottom": "", "left": "" } } }, "transform": { "normal": { "rotate": { "desktop": { "z": "", "y": "", "x": "" }, "tablet": { "z": "", "y": "", "x": "" }, "mobile": { "z": "", "y": "", "x": "" }, "threeDRotate": false }, "offset": { "desktop": { "x": "", "y": "" }, "tablet": { "x": "", "y": "" }, "mobile": { "x": "", "y": "" } }, "scale": { "isProportion": true, "desktop": { "x": "", "y": "", "scale": "" }, "tablet": { "x": "", "y": "", "scale": "" }, "mobile": { "x": "", "y": "", "scale": "" } }, "skew": { "desktop": { "x": "", "y": "" }, "tablet": { "x": "", "y": "" }, "mobile": { "x": "", "y": "" } }, "flipX": false, "flipY": false }, "hover": { "rotate": { "desktop": { "z": "", "y": "", "x": "" }, "tablet": { "z": "", "y": "", "x": "" }, "mobile": { "z": "", "y": "", "x": "" }, "threeDRotate": false }, "offset": { "desktop": { "x": "", "y": "" }, "tablet": { "x": "", "y": "" }, "mobile": { "x": "", "y": "" } }, "scale": { "isProportion": true, "desktop": { "x": "", "y": "", "scale": "" }, "tablet": { "x": "", "y": "", "scale": "" }, "mobile": { "x": "", "y": "", "scale": "" } }, "skew": { "desktop": { "x": "", "y": "" }, "tablet": { "x": "", "y": "" }, "mobile": { "x": "", "y": "" } }, "flipX": false, "flipY": false }, "transition": 200 }, "borderShadow": { "normal": { "radius": { "top": "", "right": "", "bottom": "", "left": "" }, "shadow": [ { "hOffset": "", "vOffset": "", "blur": "", "spreed": "", "color": "", "isInset": false } ] } }, "background": { "normal": { "type": "color", "color": "", "gradient": { "type": "radial", "radialType": "ellipse", "colors": [ { "color": "rgba(58, 66, 222, 1)", "position": "0" }, { "color": "rgba(176, 195, 235, 1)", "position": "80" } ], "centerPositions": { "x": 50, "y": 50 }, "angel": 90 }, "img": { "url": "", "desktop": { "position": "center center", "xPosition": 0, "yPosition": 0, "attachment": "", "repeat": "no-repeat", "size": "", "customSize": "0px" }, "tablet": { "position": "center center", "xPosition": 0, "yPosition": 0, "attachment": "", "repeat": "no-repeat", "size": "", "customSize": "0px" }, "mobile": { "position": "center center", "xPosition": 0, "yPosition": 0, "attachment": "", "repeat": "no-repeat", "size": "", "customSize": "0px" } }, "video": { "url": "", "loop": false }, "transition": 0.3 } } } } }, "supports": { "align": [ "wide", "full" ], "html": false, "anchor": true, "className": true, "customClassName": true, "spacing": { "margin": false, "padding": false } }, "example": { "attributes": { "preview": true } }, "editorScript": "file:../index.js", "style": [ "file:./view.css" ], "viewScript": "file:./view.js", "render": "file:./render.php" }