Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Single Directory Components Styleguide

Security covered Under active development 234 sites

Part of the SDC ecosystem · 21 projects

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

Drupal 10–11

Ask your assistant about Single Directory Components Styleguide

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

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
20
Tracked since
Jul 2023
Latest release
7 months ago
Releases (12 mo)
3 ▼ from 4
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.1.x-dev Dev 10–11 Jun 21, 2024
1.1.0-beta1 Pre-release 10–11 Jun 20, 2024
1.0.0-beta7 Pre-release 10 Jun 20, 2024
1.0.0-beta6 Pre-release 10 Jun 11, 2024
1.0.0-beta5 Pre-release 10 Jun 8, 2024
1.0.0-beta4 Pre-release 10 Jun 8, 2024
1.0.0-beta3 Pre-release 10 Jun 3, 2024
1.0.x-dev Dev 10 Jun 3, 2024
1.0.0-beta2 Pre-release 10 May 23, 2024
1.0.0-beta1 Pre-release 10 Jul 22, 2023