@wordpress/block-library
Version:
Block library for the WordPress editor.
23 lines (22 loc) • 873 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_block_editor = require("@wordpress/block-editor");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/block-library/src/spacer/save.jsx
function save({ attributes }) {
const { height, width, style } = attributes;
const { layout: { selfStretch } = {} } = style || {};
const finalHeight = selfStretch === "fill" || selfStretch === "fit" ? void 0 : height;
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { ..._wordpress_block_editor.useBlockProps.save({
style: {
height: (0, _wordpress_block_editor.getSpacingPresetCssVar)(finalHeight),
width: (0, _wordpress_block_editor.getSpacingPresetCssVar)(width)
},
"aria-hidden": true
}) });
}
exports.default = save;
//# sourceMappingURL=save.cjs.map