Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Block Layout Accordion 1.0.2 Minor update available for module block_layout_accordion (1.0.2). Release: Canvas interactive toggle 1.0.2 Minor update available for module canvas_interactive_toggle (1.0.2). Release: Views HTTP Client 1.0.2 Minor update available for module views_http_client (1.0.2). Release: Block Layout Accordion 1.0.1 Minor update available for module block_layout_accordion (1.0.1). Release: Canvas interactive toggle 1.0.1 Minor update available for module canvas_interactive_toggle (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Release: Audit Trail 1.0.0-alpha7 New alpha version released for module audit_trail (1.0.0-alpha7). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Decoupled Blocks

365 sites Security covered Drupal 10–11 PDB ecosystem
View on drupal.org

This module allows front-end developers to create custom blocks using their preferred JavaScript framework, without needing Drupal-specific knowledge. It encapsulates each block's assets (CSS, JS, templates) and uses a YAML file to register them with Drupal.

This module is a javascript-framework-agnostic, progressive decoupling tool to allow custom blocks to be written by front end developers in the javascript framework of their choice, without needing to know any Drupal API's.

It keeps individual components encapsulated in their own directories containing all the css, js, and template assets necessary for them to work, and using an info.yml file to declare these components and their framework dependencies to Drupal.

Framework Submodules (Vue, React, Angular, etc)

The Vue submodule is currently the most actively developed and available here: Decoupled Blocks: Vue.js.

You can utilize Decoupled Blocks: Twig to write blocks in Twig files.

There is also a really basic Decoupled Blocks: React implementation that is minimally maintained. A "hello world" example component is provided.

The Decoupled Blocks: Angular 2 implementation had the most development originally, but is no longer actively maintained.

Similar Modules

  • Component - This is a conceptual fork of PDB but does not require using submodules.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

3 tracked projects depend on this one

Activity

Tracked releases
3
Tracked since
Oct 2024
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.0 Stable 10–11 Jan 6, 2026
3.x-dev Dev 10–11 Jan 5, 2026
2.0.2 Stable 9–11 Oct 4, 2024