Example block scaffolded with Create Block tool.
- In
block.json
, define required attributes - In
edit.js
, import the component, add it to theEdit()
function and add an event handler to update the attribute - In
save.js
, import the component and add it tosave()
If you add support in your block.json, it can still be overwritten by theme.json supports. Check if something is also enabled or disabled there.