Add code requirements for using the Interactivity API on any block #52929
Labels
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Type] Developer Documentation
Documentation for developers
The following requirements should be added to Requirements of the Interactivity API
"supports": { "interactivity": true }
toblock.json
data-wp-interactive
directive to the main DOM elementThese requirements are already covered when creating an interactive block using
@wordpress/create-block-interactive-template
but they should be added to the docs for blocks not created with this template that want to start using the Interactivity API.cc: @luisherranz
The text was updated successfully, but these errors were encountered: