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 streamlines the development and visual testing of Single-Directory Components (SDCs) directly from your theme. It allows you to easily preview and test individual components with sample data, and can also perform accessibility checks. This helps ensure a consistent design system and simplifies component development by allowing you to see them in isolation without needing to build full pages.

Introduction

SDC Component Library makes developing Drupal components more efficient by enabling easy rendering and visual testing of Single-Directory Components (SDCs) directly from the theme. Components with a .story.twig file can be previewed with dummy data.

Features

The SDC Component Library module provides the following functionality:

  • Automatically reads and lists all SDCs from your theme.
  • Allows rendering components with a .story.twig file using dummy data.
  • Enables visual inspection and testing of components at /components.
  • Integration with a WCAG checker for accessibility validation.

This module is perfect for developers who want to streamline their component development workflow, allowing them to see and test their components without setting up full content pages.

Use cases include:

  • Rapid component development and testing.
  • Ensuring consistent design system implementation.
  • Accessibility checks directly within component previews.

Post-Installation

Once installed, the module reads all components from your theme folder that are set up as SDCs. You can access the component list at /components. No additional configuration is needed. However, to utilize the full functionality, ensure your components have a .story.twig file, which allows them to be rendered with sample data.
Additional Requirements

  • Single Directory Components (SDC) module enabled.

This module requires the SDC module to be active and functional within your theme.

Similar Projects

Other component development modules in Drupal exist, such as UI Patterns or storybook. However, SDC Component Library is uniquely focused on leveraging Single-Directory Components and providing direct visual previews of each component without complex setup.

Activity

Total releases
8
First release
Feb 2025
Latest release
4 months ago
Releases (12 mo)
7 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.5 Stable Feb 26, 2026
1.0.4 Stable Feb 24, 2026
1.0.3 Stable Jan 9, 2026
1.0.2 Stable Jan 9, 2026
1.0.1 Stable Nov 10, 2025
1.0.x-dev Dev Oct 8, 2025
1.0.0 Stable Oct 8, 2025
1.0.0-beta6 Pre-release Feb 11, 2025