Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Interactive Block using Interactivity API

This block has been created with the create-block-interactive-template as explained in Reference Guides > Interactivity API Reference > Quick start guide. This example shows a basic structure of an interactive block that uses the Interactivity API.

Example Description Tags Download .zip Live Demo
Interactivity API Block Demonstrates the usage of WordPress's Interactivity API to create blocks with enhanced interactive capabilities. create-block-template interactive-block interactivity-api 📦 Image

Understanding the Example Code

The block of the example has dynamic render defined at render.php and it enables the interactivity API via block.json("supports": { "interactivity": true })

Related resources

Check the following resources for more info about the Interactivity API:



Note Check the Start Guide for local development with the examples