@wordpress/block-library
Version:
Block library for the WordPress editor.
44 lines (43 loc) • 925 B
JavaScript
// packages/block-library/src/buttons/index.js
import { __ } from "@wordpress/i18n";
import { buttons as icon } from "@wordpress/icons";
import initBlock from "../utils/init-block";
import deprecated from "./deprecated";
import transforms from "./transforms";
import edit from "./edit";
import metadata from "./block.json";
import save from "./save";
var { name } = metadata;
var settings = {
icon,
example: {
attributes: {
layout: {
type: "flex",
justifyContent: "center"
}
},
innerBlocks: [
{
name: "core/button",
attributes: { text: __("Find out more") }
},
{
name: "core/button",
attributes: { text: __("Contact us") }
}
]
},
deprecated,
transforms,
edit,
save
};
var init = () => initBlock({ name, metadata, settings });
export {
init,
metadata,
name,
settings
};
//# sourceMappingURL=index.js.map