Skip to content

Latest commit

 

History

History

interactivity-api-block-833d15

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Interactive Block using Interactivity API

This block has been created with the create-block-interactive-template and 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 📦

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