Part of the PDB ecosystem · 7 projects
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.
Ask your assistant about Decoupled Blocks
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
3 tracked projects depend on this one
- Decoupled Blocks: Vue.js 274 sites
- Decoupled Blocks: Twig 1 sites
- PDB Angular Entity
More in the PDB ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | 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 | ||
| 2.0.1 | Stable | 9–10 | Jul 31, 2023 | ||
| 2.0.0 | Stable | 9–10 | Jul 31, 2023 | ||
| 2.x-dev | Dev | 9–11 | Jun 22, 2023 | ||
| 8.x-1.0 | Stable | 9–10 | Jun 20, 2023 | ||
| 8.x-1.0-alpha8 | Pre-release | 9–10 | Jun 14, 2023 |