-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] Developer DocumentationDocumentation for developersDocumentation for developers
Description
The following requirements should be added to Requirements of the Interactivity API
- Add
"supports": { "interactivity": true }
toblock.json
- Add the
data-wp-interactive
directive to the main DOM element- To indicate to the Interactivity API "engine" to hydrate this dom element and its children
These 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
luisherranz
Metadata
Metadata
Assignees
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] Developer DocumentationDocumentation for developersDocumentation for developers