SDC Property Inheritance
This module allows Single Directory Components to inherit prop schemas from parent components, reducing duplication in design systems. It enables replacement components to omit their own schema while remaining compatible with core SDC validation by injecting the parent's schema at runtime.
Drupal Single Directory Components (SDC) require replacement components (replaces:) to declare a compatible props schema, even when only Twig or CSS is overridden. In larger design systems, this often results in duplicated *.component.yml schemas.
SDC Property Inheritanceintroduces a runtime inheritance layer that allows replacement components to omit their props schema while remaining fully compatible with core SDC validation. At discovery time, the module injects the parent component’s schema into minimal override definitions, with support for partial overrides and safe merging.
All changes are applied transparently at runtime, without modifying YAML files on disk.