Drupal SDC Takes the Ring Against Storybook in Component Showdown
Pri Scarabelli, Frontend Developer at Pivale, has published a blog post staging an unusual but pointed comparison between two key approaches to frontend component development: Drupal Single Directory Components (SDC) and Storybook. The article, titled "Drupal SDC Single Directory Components vs Storybook: a component building showdown," presents the evaluation as a six-round boxing match, judged by Scarabelli alongside Darren Fisher and Daniel Johnson, with Barry Fisher acting as referee.
The comparison underscores a long-standing reality in web development: modern websites depend heavily on reusable components for consistency, performance, and scalability. Storybook has long been the established solution for building and displaying components, but Drupal SDC has emerged as a strong native alternative within the Drupal ecosystem.
Workflows and Previews
In the opening round, Scarabelli highlights the differences in workflows. Storybook relies on YAML and JavaScript stories, offering flexibility and maturity, but Drupal SDC keeps everything within Twig, using .story.twig files placed directly alongside components. The judges favoured SDC for reducing context switching and streamlining development.
The second round focused on component previews. Storybook demonstrated its polished interface with a wide range of add-ons, while SDC countered with the simplicity of Drupal-native previews via the SDC Component Library module. Both approaches were judged equally effective, with the round scored as even.
Performance and Build Processes
Performance was the focus of the third round. Storybook, while powerful, often brings additional JavaScript and complex build pipelines into play. Drupal SDC, built on server-side Twig rendering, was credited with delivering leaner pages and faster experiences, earning it the edge.
Round four looked at build setups. Storybook depends on a heavy toolchain involving Babel, Webpack, and multiple node modules, while SDC avoids that complexity by relying on modern CSS and JavaScript directly. Judges saw this as a significant advantage for SDC, describing it as a clear knockdown against the reigning champion.
Security, Maintenance, and Share-ability
Security and maintenance dominated round five. Storybook's reliance on a standalone system and large dependency tree was seen as a weakness. Drupal SDC, integrated directly into Drupal core, removes the need for managing a parallel system. This difference handed SDC another round convincingly.
The sixth and final round considered shareability. Storybook reclaimed ground by reminding developers of its framework-agnostic flexibility, allowing components to be shared across platforms, including Drupal, WordPress, and others. SDC's strength lies firmly within Drupal, making it less versatile beyond that scope. Judges credited Storybook with winning the round, though they noted that cross-platform reuse in practice often comes with its own complications.
The Decision
At the conclusion of the contest, the judges returned unanimous scorecards of 59-54 in favour of Drupal SDC, naming it the new champion for component development within Drupal. The post acknowledges that Storybook remains a valuable tool, especially for design systems requiring cross-platform compatibility, but positions Drupal SDC as the more practical, efficient, and Drupal-native choice moving forward.
Scarabbelli closes by pointing readers to resources, including the official Drupal SDC documentation, the SDC Component Library module, the Storybook Drupal module, and MDN's CSS documentation for developers wishing to explore the technologies further.


