Building Fully Decoupled Frontends with Drupal Canvas and Code Components
Balint Kleri’s latest blog post outlines how Drupal Canvas transforms frontend development through Code Components, React-based units stored as Drupal config entities and editable in-browser with real-time preview, Tailwind CSS, and zero setup.
Developers can sync components between Drupal and external environments, @drupal-canvas/cli, integrate them into tools like Storybook, or even build standalone frontend apps using frameworks like Astro or Nuxt. Kleri demonstrates this with a canvas-cc-starter repo and Astro demo app.
The Canvas External JavaScript Components module further expands flexibility, letting developers register custom JavaScript or Vue components, even if the in-browser editor only supports React. Projects like Lupus Decoupled show how to mix rendered HTML and decoupled components. The post also teases upcoming server-side rendering (SSR) capabilities with experimental support via a Node.js API, with official features planned for 2026.


