Changes to blocks and styles

This commit is contained in:
Jeremy Rangel
2025-01-01 03:08:58 -08:00
parent 741d39a962
commit 21b00e1937
45 changed files with 617 additions and 70 deletions

View File

@ -63,6 +63,8 @@ export default function Edit({ attributes, setAttributes }) {
// Update the padding attribute with the new padding object
setAttributes({ padding: newPadding });
};
return (
<div {...blockProps}>
{/* Inspector Controls: Add a SelectControl to change the sticky attribute */}
@ -142,10 +144,12 @@ export default function Edit({ attributes, setAttributes }) {
</BaseControl>
</InspectorControls>
<InnerBlocks
// Optional: You can provide a template or allowed blocks
// template={[['core/paragraph'], ['core/image']]}
template= {[
["core/template-part", {slug:'header'}]]
}
/>
</div>
);