base-js-sw
v1.0.3
Published
Reusable Gutenberg block components for WordPress projects
Downloads
124
Readme
registerBlockType('sw/link-block', {
edit: ({ attributes, setAttributes }) => {return ..
<LinkPicker
setAttributes={setAttributes}
at={attributes}
linkRef="link"
/>
},
save: () => null, // handled by render.php
});
registerBlockType('sw/image-block', {
edit: ({ attributes, setAttributes }) => {
return ...
<ImagePicker
setAttributes={setAttributes}
imageObject={attributes.imageObject}
imageRef="imageObject"
buttonText="Select an image"
/>
},
save: () => null, // handled by render.php
});