Block Data Attributes form element.
Block data attributes shown printed in dev tools.

Block Data provides the ability to add data attributes to blocks that come in handy when working with external APIs or JavaScript frameworks. This can be anything from adding data attributes for theme enhancements like modals and tooltips, to adding additional inline style attributes to a block.

Add additional attributes to blocks

This module works very similar to Block Class in that it utilizes the Core Block API and stores data attributes in the block table.

Dependencies

- Options Element

Options Element provides us a better UI for adding data attributes that is easy to understand for the end-user.

Supporting organizations: 

Project information

Releases