Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to quickly test Single Directory Components (SDCs) without needing to create actual content on your site. It automatically finds all available SDCs and provides an explorer page where you can view and test them using dynamically generated forms or pre-built demos. This helps front-end developers preview and build components independently before full integration into Drupal.

The goal of this module is to provide a quick interface to test single directory components without having to actually create content on the site.

In an ideal world, front end developers can build the markup, styles and behaviors for the components and showcase without fully integrating them into Drupal, similar to Patternlab or Storybook.

Features

* Automatically loads all SDC available on your site.
* Dinamically creates an explorer page where you can access all the available components on site. If a demo file is defined for them, the demo will be listed as an option.
* Each component automatically gets a form that can be used to generate a test on the fly. It will generate fields for the properties and slots defined on each component.
* Demos can be created trough Drush using command drush generate sdcs-demo
* Demos can be embedded on your templates or through a render array. You can reuse demos in other demos to build more examples (See the card grid component on the sdc_styleguide_demo_components submodule).

Post-Installation

* Go to /styleguide/explorer and use the explorer to test the demos for the components.

Additional Requirements

* Drupal 10.1 and Single Directory Components for 1.0.x. Drupal 10.3 and higher for 1.1.x
* If using the generator Drush commands for demos, you will need at least Drush 12.5

Known Issues

The SDC Demo form only works once:

This is because of this issue: https://www.drupal.org/project/drupal/issues/3463875

Adding the patch should fix it if you are on an core affected version.

Supporting this Module

All contributions are appreciated https://www.buymeacoffee.com/alemadlei

Activity

Total releases
5
First release
Oct 2025
Latest release
4 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.3.3 Stable Mar 15, 2026
1.3.2 Stable Mar 14, 2026
1.3.1 Stable Mar 8, 2026
1.3.0 Stable Oct 9, 2025
1.3.x-dev Dev Oct 9, 2025