@wordpress/block-library
Version:
Block library for the WordPress editor.
18 lines (17 loc) • 669 B
JavaScript
// packages/block-library/src/tabs/save.js
import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor";
import { jsx, jsxs } from "react/jsx-runtime";
function Save({ attributes }) {
const blockProps = useBlockProps.save();
const innerBlocksProps = useInnerBlocksProps.save({});
const title = attributes?.metadata?.name || "Tab Contents";
return /* @__PURE__ */ jsxs("div", { ...blockProps, children: [
/* @__PURE__ */ jsx("h3", { className: "tabs__title", children: title }),
/* @__PURE__ */ jsx("ul", { className: "tabs__list" }),
innerBlocksProps.children
] });
}
export {
Save as default
};
//# sourceMappingURL=save.js.map