The Layout Builder Component Attributes module allows editors to add HTML attributes to Layout Builder components (blocks). Attributes can be added to 1) the block (outer) element, 2) the block title, and 3) the block content (inner) element.
The following attributes are supported:
- ID
- Class(es)
- Style
- Data-* attributes
Note: This module requires Drupal 8.8.4+ and must be installed with Composer.